From: Florian Forster Date: Thu, 1 Jun 2006 07:38:30 +0000 (+0200) Subject: Cast (size_t) to (unsigned int). X-Git-Tag: liboping-0.2.1~7 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1a6e3fd8fd64b0e17438e6374419417b6903cd79;p=liboping.git Cast (size_t) to (unsigned int). It's not always automatically an unsigned int on other platforms, e.g. Mac OS X. --- diff --git a/src/oping.c b/src/oping.c index 975fa5c..18724f4 100644 --- a/src/oping.c +++ b/src/oping.c @@ -322,7 +322,7 @@ int main (int argc, char **argv) ping_iterator_get_info (iter, PING_INFO_DATA, NULL, &buffer_size); printf ("PING %s (%s) %u bytes of data.\n", - context->host, context->addr, buffer_size); + context->host, context->addr, (unsigned int) buffer_size); ping_iterator_set_context (iter, (void *) context); }