]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up signed vs. unsigned.
authorGuy Harris <[email protected]>
Thu, 23 Nov 2017 19:19:38 +0000 (11:19 -0800)
committerGuy Harris <[email protected]>
Thu, 23 Nov 2017 19:19:38 +0000 (11:19 -0800)
commitc45bfbe0abffa23618e622cc984f97244b5608dd
tree49786306f2b9f1cee2616242f1c441981a48ace4
parentd42f1df527f024122815ddfab1d7cebee042e87c
Clean up signed vs. unsigned.

Have separate cpack_ routines for signed and unsigned numbers, with the
signed ones using _S_ extract macros.  That way, we can do more type
checking.

Add EXTRACT_LE_S_ macros.

Use signed variables for IEEE80211_RADIOTAP_TX_ATTENUATION and
IEEE80211_RADIOTAP_DB_TX_ATTENUATION, rather than using unsigned
variables that we cast to int.

Also, use EXTRACT_U_1() in cpack_uint8.
cpack.c
cpack.h
extract.h
print-802_11.c