]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tftp.c
Merge pull request #468 from gvanem/patch-1
[tcpdump] / print-tftp.c
index 9b88e74f1022767590a3c52fefd9f59fc843c0f6..d996b8cfd69269cd7ef04ee6c4f72a7460111ab5 100644 (file)
@@ -21,7 +21,6 @@
  * Format and print trivial file transfer protocol packets.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -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)