aboutsummaryrefslogtreecommitdiffstats
path: root/epan/reassemble_test.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-07-23 14:58:15 -0700
committerGerald Combs <gerald@wireshark.org>2018-07-23 23:19:17 +0000
commit4bd0978f9c9b625d189998bb08812a289eef9d55 (patch)
treec122f2b6fc6b41dccd8fcfe3c65285e226edaa91 /epan/reassemble_test.c
parent956321ed67702e2cf95c53711fceda85d8ded155 (diff)
reassemble_test: Fix argument type warnings.
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>
Diffstat (limited to 'epan/reassemble_test.c')
-rw-r--r--epan/reassemble_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/reassemble_test.c b/epan/reassemble_test.c
index 743c6cc043..f8a9b4f8b2 100644
--- a/epan/reassemble_test.c
+++ b/epan/reassemble_test.c
@@ -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); \
}