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/util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libalpm/util.c') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index f78d193a..f608a2c6 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -380,8 +380,7 @@ int _alpm_rmrf(const char *path) return(0); } -int _alpm_logaction(unsigned short usesyslog, FILE *f, - const char *fmt, va_list args) +int _alpm_logaction(int usesyslog, FILE *f, const char *fmt, va_list args) { int ret = 0; -- cgit v1.2.3-24-g4f1b