From bf2964dc5841f49d1d5ab60181b0caa4670c1874 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 14 May 2008 19:38:58 -0500 Subject: Fix compilation warning on x86_64 Glad we have so many developers using this as their native architecture. int/size_t issue here. Signed-off-by: Dan McGee --- lib/libalpm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/util.c') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 65b6372a..55bd46a8 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -238,7 +238,7 @@ int _alpm_copyfile(const char *src, const char *dest) return(1); } - CALLOC(buf, 1, CPBUFSIZE, ret = 1; goto cleanup;); + CALLOC(buf, (size_t)CPBUFSIZE, (size_t)1, ret = 1; goto cleanup;); /* do the actual file copy */ while((len = fread(buf, 1, CPBUFSIZE, in))) { -- cgit v1.2.3