From 9861c52f3ff659035062f0927ca8442341eff4ce Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 14 Jul 2008 09:39:47 +0200 Subject: [PATCH] ntpd plugin: Fix two format strings. --- src/ntpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ntpd.c b/src/ntpd.c index ff0a48dc..b6214e87 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -612,7 +612,7 @@ static int ntpd_receive_response (int *res_items, int *res_size, pkt_padding = 0; if (pkt_item_len < res_item_size) pkt_padding = res_item_size - pkt_item_len; - DEBUG ("res_item_size = %i; pkt_padding = %i;", + DEBUG ("res_item_size = %i; pkt_padding = %zi;", res_item_size, pkt_padding); /* Extract the sequence number */ @@ -651,7 +651,7 @@ static int ntpd_receive_response (int *res_items, int *res_size, * Enough with the checks. Copy the data now. * We start by allocating some more memory. */ - DEBUG ("realloc (%p, %i)", (void *) *res_data, + DEBUG ("realloc (%p, %zu)", (void *) *res_data, (items_num + pkt_item_num) * res_item_size); items = realloc ((void *) *res_data, (items_num + pkt_item_num) * res_item_size); -- 2.30.2