]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-fr.c
Fix a bunch of de-constifications.
[tcpdump] / print-fr.c
index 17321b1459e3cb6d9d302786129ead6b7449a77c..2e04cbdca156a5a331c2524796cd99838b182fd7 100644 (file)
@@ -765,7 +765,7 @@ q933_print(netdissect_options *ndo,
            const u_char *p, u_int length)
 {
        const u_char *ptemp = p;
-       struct ie_tlv_header_t  *ie_p;
+       const struct ie_tlv_header_t  *ie_p;
         int olen;
        int is_ansi = 0;
         u_int codeset;
@@ -813,7 +813,7 @@ q933_print(netdissect_options *ndo,
 
        /* Loop through the rest of IE */
        while (length > sizeof(struct ie_tlv_header_t)) {
-               ie_p = (struct ie_tlv_header_t  *)ptemp;
+               ie_p = (const struct ie_tlv_header_t  *)ptemp;
                if (length < sizeof(struct ie_tlv_header_t) ||
                    length < sizeof(struct ie_tlv_header_t) + ie_p->ie_len) {
                     if (ndo->ndo_vflag) { /* not bark if there is just a trailer */