From 93101836aa2492393b960a00b660f529a170c866 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sun, 12 Oct 2008 19:20:35 +0200 Subject: [PATCH] 64bits fix Signed-off-by: Pierre Habouzit --- postlicyd/iplist.c | 2 +- postlicyd/query.c | 2 +- postlicyd/strlist.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.20.1