]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-krb.c
Fix a bunch of de-constifications.
[tcpdump] / print-krb.c
index 3b4798c6eeea7722176bdd8ae03c66c93a8748cc..b57c12d8c950f7079765ea8fe1d7a88a502cc004 100644 (file)
@@ -155,7 +155,7 @@ krb4_print(netdissect_options *ndo,
 #define IS_LENDIAN(kp) (((kp)->type & 0x01) != 0)
 #define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? EXTRACT_LE_16BITS(cp) : EXTRACT_16BITS(cp))
 
-       kp = (struct krb *)cp;
+       kp = (const struct krb *)cp;
 
        if ((&kp->type) >= ndo->ndo_snapend) {
                ND_PRINT((ndo, "%s", tstr));
@@ -226,7 +226,7 @@ krb_print(netdissect_options *ndo,
 {
        register const struct krb *kp;
 
-       kp = (struct krb *)dat;
+       kp = (const struct krb *)dat;
 
        if (dat >= ndo->ndo_snapend) {
                ND_PRINT((ndo, "%s", tstr));