forked from osmocom/wireshark
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>
This commit is contained in:
parent
956321ed67
commit
4bd0978f9c
|
@ -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); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue