diff options
author | Thomas Habets <habets@google.com> | 2019-10-21 17:59:27 +0100 |
---|---|---|
committer | Thomas Habets <habets@google.com> | 2019-10-21 18:04:30 +0100 |
commit | beefa3199d82c0f1a13e36e6e93b3f59f3cc218c (patch) | |
tree | 8124527bfa8258f06be7f9f73535de2c97de02aa | |
parent | 18272df968235771fd2221a1a0e6d59d4421db23 (diff) | |
download | libnet-beefa3199d82c0f1a13e36e6e93b3f59f3cc218c.tar.gz |
Cast pointer to (void*) to silence -Wextra warning
-rw-r--r-- | src/libnet_internal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libnet_internal.c b/src/libnet_internal.c index 3cee967..10fe20a 100644 --- a/src/libnet_internal.c +++ b/src/libnet_internal.c @@ -102,8 +102,8 @@ libnet_diag_dump_context(libnet_t *l) break; } - fprintf(stderr, "pblock start:\t%p\n", l->protocol_blocks); - fprintf(stderr, "pblock end:\t%p\n", l->pblock_end); + fprintf(stderr, "pblock start:\t%p\n", (void*)l->protocol_blocks); + fprintf(stderr, "pblock end:\t%p\n", (void*)l->pblock_end); fprintf(stderr, "link type:\t%d\n", l->link_type); fprintf(stderr, "link offset:\t%d\n", l->link_offset); fprintf(stderr, "aligner:\t%d\n", l->aligner); @@ -128,15 +128,15 @@ libnet_diag_dump_pblock(libnet_t *l) fprintf(stderr, "pblock type:\t%s\n", libnet_diag_dump_pblock_type(p->type)); fprintf(stderr, "ptag number:\t%d\n", p->ptag); - fprintf(stderr, "pblock address:\t%p\n", p); - fprintf(stderr, "next pblock\t%p ", p->next); + fprintf(stderr, "pblock address:\t%p\n", (void*)p); + fprintf(stderr, "next pblock\t%p ", (void*)p->next); if (p->next) { fprintf(stderr, "(%s)", libnet_diag_dump_pblock_type(p->next->type)); } fprintf(stderr, "\n"); - fprintf(stderr, "prev pblock\t%p ", p->prev); + fprintf(stderr, "prev pblock\t%p ", (void*)p->prev); if (p->prev) { fprintf(stderr, "(%s)", |