diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-04-13 18:57:09 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-04-13 18:57:09 -0700 |
commit | 45a212f0a2292aabffbd60bf97d37a83c3117825 (patch) | |
tree | 54452c385fbd599599ac58641571d6e84f548ab2 | |
parent | 2398aa233d3af23bfeca138f93ca2708a197dcfa (diff) | |
download | tcpdump-45a212f0a2292aabffbd60bf97d37a83c3117825.tar.gz |
Squelch a signed vs. unsigned comparison warning.
uint8_t + int constant = int; make the constant unsigned.
-rw-r--r-- | print-fr.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -851,10 +851,10 @@ q933_print(netdissect_options *ndo, if (ie_p->ie_type == 0 || ie_p->ie_len == 0) { return; } - if (length < ie_p->ie_len + 2) { + if (length < ie_p->ie_len + 2U) { goto trunc; } - ND_TCHECK2(*ptemp, ie_p->ie_len + 2); + ND_TCHECK2(*ptemp, ie_p->ie_len + 2U); if (fr_q933_print_ie_codeset[codeset] != NULL) { ie_is_known = fr_q933_print_ie_codeset[codeset](ndo, ie_p, ptemp); @@ -869,8 +869,8 @@ q933_print(netdissect_options *ndo, print_unknown_data(ndo, ptemp+2, "\n\t ", ie_p->ie_len); } - length -= ie_p->ie_len + 2; - ptemp += ie_p->ie_len + 2; + length -= ie_p->ie_len + 2U; + ptemp += ie_p->ie_len + 2U; } if (!ndo->ndo_vflag) { ND_PRINT((ndo, ", length %u", olen)); |