]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up signed vs. unsigned warnings.
authorGuy Harris <[email protected]>
Sun, 14 Jan 2018 22:15:18 +0000 (14:15 -0800)
committerGuy Harris <[email protected]>
Sun, 14 Jan 2018 22:15:18 +0000 (14:15 -0800)
commit9d83ad9c9e8ce15d380e7b04d8ffbb73991e552f
tree8bccd5cd35058c677b2f20aa49d3ce350a6beca6
parent3d291155a2a10868140d3e8bd7342b9150f42a0f
Clean up signed vs. unsigned warnings.

If length is a uint8_t, subtracting 2 (a value of type int) from it
yields a value of type int, so compariing it against a u_int index
causes a signed vs. unsigned warning.

Make it a u_int instead (before we subtract 2 from it, we've already
checked to make sure it's >= 2, so we know the result will never be
negative).
print-nsh.c