Code

ntpd plugin: Fix two format strings.
authorFlorian Forster <octo@noris.net>
Mon, 14 Jul 2008 07:39:47 +0000 (09:39 +0200)
committerFlorian Forster <octo@noris.net>
Mon, 14 Jul 2008 07:39:47 +0000 (09:39 +0200)
src/ntpd.c

index ff0a48dceeb6a42a4150937fed013c6b06279336..b6214e87d01687f2393b4bb8d876fef6e3861cd4 100644 (file)
@@ -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);