From 4bd0978f9c9b625d189998bb08812a289eef9d55 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 23 Jul 2018 14:58:15 -0700 Subject: [PATCH] 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 Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- epan/reassemble_test.c | 4 ++-- 1 file 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); \ }