]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ntp.c
Fix a bunch of de-constifications.
[tcpdump] / print-ntp.c
index e83d47a7dd58db4b0d478a47398f1d8f22865d27..eed98f7e68b821384b1e3aaa37dcb69ec5c890f0 100644 (file)
@@ -23,7 +23,6 @@
  *     loosely based on print-bootp.c
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -207,7 +206,7 @@ ntp_print(netdissect_options *ndo,
        register const struct ntpdata *bp;
        int mode, version, leapind;
 
-       bp = (struct ntpdata *)cp;
+       bp = (const struct ntpdata *)cp;
 
        ND_TCHECK(bp->status);
 
@@ -261,7 +260,7 @@ ntp_print(netdissect_options *ndo,
                break;
 
        case PRIM_REF:
-               if (fn_printn(ndo, (u_char *)&(bp->refid), 4, ndo->ndo_snapend))
+               if (fn_printn(ndo, (const u_char *)&(bp->refid), 4, ndo->ndo_snapend))
                        goto trunc;
                break;