mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
802.15.4: Replace '> 0' with '!= 0' in some unsigned expression tests
Unsigned is always >= 0, so '> 0' and '!= 0' are identical. This makes the tests a little clearer.
This commit is contained in:
parent
cf78babcbf
commit
f9ea99305f
@ -1299,7 +1299,7 @@ ieee802_15_4_print_mlme_ie_list(netdissect_options *ndo,
|
||||
ND_PRINT("] ");
|
||||
p += sub_ie_len;
|
||||
ie_len -= 2 + sub_ie_len;
|
||||
} while (ie_len > 0);
|
||||
} while (ie_len != 0);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1502,7 +1502,7 @@ ieee802_15_4_print_payload_ie_list(netdissect_options *ndo,
|
||||
if (group_id == 0xf) {
|
||||
break;
|
||||
}
|
||||
} while (caplen > 0);
|
||||
} while (caplen != 0);
|
||||
return len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user