diff options
Diffstat (limited to 'print-null.c')
| -rw-r--r-- | print-null.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/print-null.c b/print-null.c index 166f777dee2b..14df5fd15833 100644 --- a/print-null.c +++ b/print-null.c @@ -19,16 +19,17 @@   * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.   */ -#define NETDISSECT_REWORKED +/* \summary: BSD loopback device printer */ +  #ifdef HAVE_CONFIG_H  #include "config.h"  #endif -#include <tcpdump-stdinc.h> +#include <netdissect-stdinc.h>  #include <string.h> -#include "interface.h" +#include "netdissect.h"  #include "af.h"  /* @@ -83,7 +84,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  | 
