]> The Tcpdump Group git mirrors - tcpdump/commit
Try to squelch a GCC warning.
authorGuy Harris <[email protected]>
Wed, 14 Feb 2018 04:49:07 +0000 (20:49 -0800)
committerGuy Harris <[email protected]>
Wed, 14 Feb 2018 04:49:07 +0000 (20:49 -0800)
commit98440166f7d77a7a8481176ba42051c2bf38b03d
tree2597fd6fccc34f16021f299607817524ba98a614
parentaf65a3d711cb25f05f484aa053fa40138b3a0bcb
Try to squelch a GCC warning.

Maybe I've gotten lost in a twisty little maze of typedefs and array
pointers, all different, but I don't see how casting a const struct
icmp6_hdr * to a const nd_ipv6 * discards constness, and clang on my Mac
agrees with me.

First cast to const u_char * and then to const nd_ipv6 *, in the hopes
that GCC won't complain.
print-icmp6.c