]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vtp.c
Fix a bunch of de-constifications.
[tcpdump] / print-vtp.c
index 9fe86e3c4bb67cea2775ed3a421d717f776dfe49..2ee37542dcd4bf26df9790bd69da82069160bd42 100644 (file)
@@ -22,7 +22,6 @@
  * Original code ode by Carles Kishimoto <[email protected]>
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -241,7 +240,7 @@ vtp_print (netdissect_options *ndo,
 
            ND_TCHECK2(*tptr, len);
 
-           vtp_vlan = (struct vtp_vlan_*)tptr;
+           vtp_vlan = (const struct vtp_vlan_*)tptr;
            ND_PRINT((ndo, "\n\tVLAN info status %s, type %s, VLAN-id %u, MTU %u, SAID 0x%08x, Name %s",
                   tok2str(vtp_vlan_status,"Unknown",vtp_vlan->status),
                   tok2str(vtp_vlan_type_values,"Unknown",vtp_vlan->type),