diff options
Diffstat (limited to 'utils/ulog_test.c')
-rw-r--r-- | utils/ulog_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ulog_test.c b/utils/ulog_test.c index d568aa4..f3adec2 100644 --- a/utils/ulog_test.c +++ b/utils/ulog_test.c @@ -23,7 +23,7 @@ void handle_packet(ulog_packet_msg_t *pkt) unsigned char *p; int i; - printf("Hook=%u Mark=%lu len=%d ", + printf("Hook=%u Mark=%lu len=%zu ", pkt->hook, pkt->mark, pkt->data_len); if (strlen(pkt->prefix)) printf("Prefix=%s ", pkt->prefix); @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) exit(1); } printf("%d bytes received\n", len); - while (upkt = ipulog_get_packet(h, buf, len)) { + while ((upkt = ipulog_get_packet(h, buf, len)) != NULL) { handle_packet(upkt); } } |