Code

Cast (size_t) to (unsigned int).
authorFlorian Forster <octo@verplant.org>
Thu, 1 Jun 2006 07:38:30 +0000 (09:38 +0200)
committerFlorian Forster <octo@verplant.org>
Thu, 1 Jun 2006 07:38:30 +0000 (09:38 +0200)
It's not always automatically an unsigned int on other platforms, e.g. Mac OS X.

src/oping.c

index 975fa5ccc27f542bacc57c1f9dc2d410542d004b..18724f4c2d289bf34e1795b076a7c63a284a8d6b 100644 (file)
@@ -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);
        }