From: Pierre Habouzit Date: Sun, 12 Oct 2008 17:20:35 +0000 (+0200) Subject: 64bits fix X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=93101836aa2492393b960a00b660f529a170c866;p=apps%2Fpfixtools.git 64bits fix Signed-off-by: Pierre Habouzit --- diff --git a/postlicyd/iplist.c b/postlicyd/iplist.c index e4869cc..2aa757f 100644 --- a/postlicyd/iplist.c +++ b/postlicyd/iplist.c @@ -414,7 +414,7 @@ static void iplist_filter_async(rbl_result_t *result, void *arg) --async->awaited; debug("got asynchronous request result for filter %s, rbl %d, still awaiting %d answers", - filter->name, result - array_ptr(async->results, 0), async->awaited); + filter->name, (int)(result - array_ptr(async->results, 0)), async->awaited); if (async->awaited == 0) { filter_result_t res = HTK_FAIL; diff --git a/postlicyd/query.c b/postlicyd/query.c index fe370b7..2d4cd89 100644 --- a/postlicyd/query.c +++ b/postlicyd/query.c @@ -225,7 +225,7 @@ ssize_t query_format(char *dest, size_t len, const char *fmt, const query_t *que postlicyd_token tok = policy_tokenize(fmt, next_format - fmt); if (tok == PTK_UNKNOWN) { - warn("unknown field name \"%.*s\"", next_format - fmt, fmt); + warn("unknown field name \"%.*s\"", (int)(next_format - fmt), fmt); } const char *field = query == NULL ? NULL : query_field_for_id(query, tok); if (field == NULL) { diff --git a/postlicyd/strlist.c b/postlicyd/strlist.c index 9469ad0..b66c33a 100644 --- a/postlicyd/strlist.c +++ b/postlicyd/strlist.c @@ -522,7 +522,7 @@ static void strlist_filter_async(rbl_result_t *result, void *arg) --async->awaited; debug("got asynchronous request result for filter %s, rbl %d, still awaiting %d answers", - filter->name, result - array_ptr(async->results, 0), async->awaited); + filter->name, (int)(result - array_ptr(async->results, 0)), async->awaited); if (async->awaited == 0) { filter_result_t res = HTK_FAIL;