summaryrefslogtreecommitdiff
path: root/caputils/airpcap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-16 11:16:11 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-16 18:16:58 +0000
commit50add40a2da49178fd784b063e44d59208d40d02 (patch)
tree09f0df938983a1352f92ddf3a8325dd49a768f0f /caputils/airpcap.h
parent353f6258f92ed7f8787cc32cd92ac3d44aa88f21 (diff)
downloadwireshark-50add40a2da49178fd784b063e44d59208d40d02.tar.gz
Fix some more "char is unsigned" issues, and a possible "char is signed" one.
C neither guarantees that char is signed nor that it's unsigned. Make the str_to_nibble tables arrays of gint8, to make sure they can hold numbers between 0 and 15 as well as -1. Cast gchar to guchar, not int, when using it as a subscript into that array, so that the subscripts are in the range 0 to 255, not -128 to 127. Change-Id: Ib85de5aa4e83ae9efd808c78ce3f86f45b4a3f2a Reviewed-on: https://code.wireshark.org/review/4734 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'caputils/airpcap.h')
0 files changed, 0 insertions, 0 deletions