diff options
author | Dan McGee <dan@archlinux.org> | 2009-10-11 13:51:47 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-10-11 13:51:47 -0500 |
commit | 35dc9b03149dc2f42022fe5fea80a3aed3207489 (patch) | |
tree | dbcfa549cf1b8bf30e4d94bad301e6f1f9c12179 /lib/libalpm/db.c | |
parent | cf0d619670a4d0c67ad67e22bacbb69c203714f5 (diff) | |
download | pacman-35dc9b03149dc2f42022fe5fea80a3aed3207489.tar.xz |
int typing: s/unsigned short/int/ in libalpm
After our recent screwup with size_t and ssize_t in the download code, I
found the `-Wsign-conversion` flag to GCC to see if we were doing anything
else boneheaded. I didn't find anything quite as bad, but we did have some
goofups- most of our public unsigned methods would return -1 on error, which
is a bit odd in an unsigned context.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r-- | lib/libalpm/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index e57ff935..dca5452a 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -323,7 +323,7 @@ alpm_list_t SYMEXPORT *alpm_db_search(pmdb_t *db, const alpm_list_t* needles) /** @} */ -static pmdb_t *_alpm_db_new(const char *treename, unsigned short is_local) +static pmdb_t *_alpm_db_new(const char *treename, int is_local) { pmdb_t *db; |