summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-04-13 18:57:09 -0700
committerGuy Harris <guy@alum.mit.edu>2016-04-13 18:57:09 -0700
commit45a212f0a2292aabffbd60bf97d37a83c3117825 (patch)
tree54452c385fbd599599ac58641571d6e84f548ab2
parent2398aa233d3af23bfeca138f93ca2708a197dcfa (diff)
downloadtcpdump-45a212f0a2292aabffbd60bf97d37a83c3117825.tar.gz
Squelch a signed vs. unsigned comparison warning.
uint8_t + int constant = int; make the constant unsigned.
-rw-r--r--print-fr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-fr.c b/print-fr.c
index ff3fec66..3d2154da 100644
--- a/print-fr.c
+++ b/print-fr.c
@@ -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));