Code

Cast `size_t' to `unsigned int'. Needed by Mac OS X.
authorFlorian Forster <octo@verplant.org>
Thu, 1 Jun 2006 20:11:57 +0000 (22:11 +0200)
committerFlorian Forster <octo@verplant.org>
Thu, 1 Jun 2006 20:11:57 +0000 (22:11 +0200)
This cast has been missed by the prefious fix because it was in the debugging
code which was disabled then..

src/liboping.c

index c6e9df5fce61dff99a7909c078048a2ea9ab4c34..6dbb73f9a875e6b3b550c11d231fa340d0e36f79 100644 (file)
@@ -370,7 +370,7 @@ static int ping_receive_one (int fd, pinghost_t *ph, struct timeval *now)
                return (-1);
        }
 
-       dprintf ("Read %i bytes from fd = %i\n", buffer_len, fd);
+       dprintf ("Read %u bytes from fd = %i\n", (unsigned int) buffer_len, fd);
 
        if (sa.ss_family == AF_INET)
        {