From 35dc9b03149dc2f42022fe5fea80a3aed3207489 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 11 Oct 2009 13:51:47 -0500 Subject: 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 --- lib/libalpm/db.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/db.h') diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h index 29816032..e4e1dcb7 100644 --- a/lib/libalpm/db.h +++ b/lib/libalpm/db.h @@ -43,9 +43,9 @@ struct __pmdb_t { char *treename; /* do not access directly, use _alpm_db_path(db) for lazy access */ char *_path; - unsigned short pkgcache_loaded; - unsigned short grpcache_loaded; - unsigned short is_local; + int pkgcache_loaded; + int grpcache_loaded; + int is_local; alpm_list_t *pkgcache; alpm_list_t *grpcache; alpm_list_t *servers; -- cgit v1.2.3-24-g4f1b