From 6d766f91ef1fb59dd1948d321f0c5fda42e2ed50 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 5 Apr 2011 11:52:25 +0200 Subject: [PATCH] Fix compiler warnings in defrag unittests. --- src/decode-ipv4.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/decode-ipv4.c b/src/decode-ipv4.c index 1d94e7658a..fc1770ad82 100644 --- a/src/decode-ipv4.c +++ b/src/decode-ipv4.c @@ -1660,8 +1660,8 @@ int DecodeIPV4DefragTest01(void) } if (GET_PKT_LEN(tp) != sizeof(tunnel_pkt)) { printf("defragged pseudo packet's and parent packet's pkt lens " - "don't match\n %u != %lu", - GET_PKT_LEN(tp), sizeof(tunnel_pkt)); + "don't match\n %u != %"PRIuMAX, + GET_PKT_LEN(tp), (uintmax_t)sizeof(tunnel_pkt)); result = 0; goto end; } @@ -1801,8 +1801,8 @@ int DecodeIPV4DefragTest02(void) } if (GET_PKT_LEN(tp) != sizeof(tunnel_pkt)) { printf("defragged pseudo packet's and parent packet's pkt lens " - "don't match\n %u != %lu", - GET_PKT_LEN(tp), sizeof(tunnel_pkt)); + "don't match\n %u != %"PRIuMAX, + GET_PKT_LEN(tp), (uintmax_t)sizeof(tunnel_pkt)); result = 0; goto end; } @@ -1963,8 +1963,8 @@ int DecodeIPV4DefragTest03(void) } if (GET_PKT_LEN(tp) != sizeof(tunnel_pkt)) { printf("defragged pseudo packet's and parent packet's pkt lens " - "don't match\n %u != %lu", - GET_PKT_LEN(tp), sizeof(tunnel_pkt)); + "don't match\n %u != %"PRIuMAX, + GET_PKT_LEN(tp), (uintmax_t)sizeof(tunnel_pkt)); result = 0; goto end; }