That also lets us eliminate a cast.
const u_char *ptemp = p;
const struct ie_tlv_header_t *ie_p;
int olen;
const u_char *ptemp = p;
const struct ie_tlv_header_t *ie_p;
int olen;
u_int codeset;
u_int ie_is_known = 0;
u_int codeset;
u_int ie_is_known = 0;
olen = length; /* preserve the original length for non verbose mode */
olen = length; /* preserve the original length for non verbose mode */
- if (length < (u_int)(2 + is_ansi)) {
+ if (length < 2 + is_ansi) {
ND_PRINT((ndo, "[|q.933]"));
return;
}
ND_PRINT((ndo, "[|q.933]"));
return;
}