]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-egp.c
Fix a bunch of de-constifications.
[tcpdump] / print-egp.c
index 8e4abc65abb09e696033413c10dda4e4c7fa7a93..e15f688b7555c9c51844e2cfa2e495ff6204ae9a 100644 (file)
@@ -151,7 +151,7 @@ egpnrprint(netdissect_options *ndo,
                net = 0;
                netlen = 0;
        }
-       cp = (uint8_t *)(egp + 1);
+       cp = (const uint8_t *)(egp + 1);
 
        t_gateways = egp->egp_intgw + egp->egp_extgw;
        for (gateways = 0; gateways < t_gateways; ++gateways) {
@@ -214,7 +214,7 @@ egp_print(netdissect_options *ndo,
        register int code;
        register int type;
 
-       egp = (struct egp_packet *)bp;
+       egp = (const struct egp_packet *)bp;
         if (!ND_TTEST2(*egp, length)) {
                ND_PRINT((ndo, "[|egp]"));
                return;