summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-10-11 13:51:47 -0500
committerDan McGee <dan@archlinux.org>2009-10-11 13:51:47 -0500
commit35dc9b03149dc2f42022fe5fea80a3aed3207489 (patch)
treedbcfa549cf1b8bf30e4d94bad301e6f1f9c12179 /lib/libalpm/package.h
parentcf0d619670a4d0c67ad67e22bacbb69c203714f5 (diff)
downloadpacman-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/package.h')
-rw-r--r--lib/libalpm/package.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index aea3f394..b003b410 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -49,8 +49,8 @@ struct __pmpkg_t {
off_t size;
off_t isize;
off_t download_size;
- unsigned short scriptlet;
- unsigned short force;
+ int scriptlet;
+ int force;
pmpkgreason_t reason;
alpm_list_t *licenses;
alpm_list_t *replaces;