reassemble_test: Fix argument type warnings.
authorGerald Combs <gerald@wireshark.org>
Mon, 23 Jul 2018 21:58:15 +0000 (14:58 -0700)
committerGerald Combs <gerald@wireshark.org>
Mon, 23 Jul 2018 23:19:17 +0000 (23:19 +0000)
Try to fix

../epan/reassemble_test.c:70:16: warning: format '%p' expects argument of type 'void *', but argument 6 has type 'fragment_head * {aka struct _fragment_item *}' [-Wformat=]

and similar warnings.

Change-Id: Ied2d2f7b7a3e6fa29d51c10f17199decdecfa81c
Reviewed-on: https://code.wireshark.org/review/28839
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
epan/reassemble_test.c

index 743c6cc0439280ca3b4caa9d568553d1117d69d4..f8a9b4f8b20770c369d933be51c855591a646730 100644 (file)
@@ -67,14 +67,14 @@ static int failure = 0;
 #define ASSERT_EQ_POINTER(exp,act)  \
     if ((exp)!=(act)) {     \
         failure = 1;        \
-        printf("Assertion failed at line %i: %s==%s (%p==%p)\n", __LINE__, #exp, #act, exp, act);  \
+        printf("Assertion failed at line %i: %s==%s (%p==%p)\n", __LINE__, #exp, #act, (void *)exp, (void *)act);  \
         exit(1);            \
     }
 
 #define ASSERT_NE_POINTER(exp,act)  \
     if ((exp)==(act)) {     \
         failure = 1;        \
-        printf("Assertion failed at line %i: %s!=%s (%p!=%p)\n", __LINE__, #exp, #act, exp, act);  \
+        printf("Assertion failed at line %i: %s!=%s (%p!=%p)\n", __LINE__, #exp, #act, (void *)exp, (void *)act);  \
         exit(1);            \
     }