X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/24598ce6b7cfe72ada92aed48691fdf092d94fc7..refs/pull/482/head:/print-tftp.c diff --git a/print-tftp.c b/print-tftp.c index 9b88e74f..e7201ebd 100644 --- a/print-tftp.c +++ b/print-tftp.c @@ -21,16 +21,15 @@ * Format and print trivial file transfer protocol packets. */ -#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include #include -#include "interface.h" +#include "netdissect.h" #include "extract.h" /* @@ -131,7 +130,7 @@ tftp_print(netdissect_options *ndo, case RRQ: case WRQ: case OACK: - p = (u_char *)tp->th_stuff; + p = (const u_char *)tp->th_stuff; ND_PRINT((ndo, " ")); /* Print filename or first option */ if (opcode != OACK)