]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
interface.h,netdissect.h: Cleaning unused items
[tcpdump] / print-null.c
index 166f777dee2b24b660950fbd201b7ef171308c4f..b6fdf9f80a0dc3c4b9d2312e06d7d3aeaadd9cd3 100644 (file)
@@ -19,7 +19,6 @@
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -83,7 +82,7 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
                return (NULL_HDRLEN);
        }
 
-       memcpy((char *)&family, (char *)p, sizeof(family));
+       memcpy((char *)&family, (const char *)p, sizeof(family));
 
        /*
         * This isn't necessarily in our host byte order; if this is