]> The Tcpdump Group git mirrors - tcpdump/commit
Don't decrement an unsigned value past zero.
authorGuy Harris <[email protected]>
Thu, 1 Feb 2018 22:25:29 +0000 (14:25 -0800)
committerGuy Harris <[email protected]>
Thu, 1 Feb 2018 22:25:29 +0000 (14:25 -0800)
commit6a42fb7011b7ab81f783db7e802ec48d86673a27
tree4acc4de72568f2cd5e5e0c6cda004d011249e9c7
parent3582e7ac3d179510287a02861bed2b92f519d5d6
Don't decrement an unsigned value past zero.

That also means we do one less decrement, so it's not as if testing
i-- rather than testing i and separately decrementing it is an
optimization.

Fix some types to unsigned while we're at it - and do the above change
for them, too.
print-snmp.c