diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-01 10:15:39 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-01 10:28:43 +0200 |
commit | 52ad9e15b42a87c7477cd305d9cfd3afb5128976 (patch) | |
tree | cf4a0a281c6082cdebd42f4fa8c345c09ed13f74 /print-802_11.c | |
parent | 1f9d3d622e419fcc44f1cd0f1e53f04004d98600 (diff) | |
download | tcpdump-52ad9e15b42a87c7477cd305d9cfd3afb5128976.tar.gz |
IEEE 802.11: Fix signedness of the flags parameters of print_chaninfo()
uint32_t for flags, because there are calls with uint16_t and uint32_t.
This change avoids (for presentflags):
print-802_11.c:2795:41: runtime error: implicit conversion from type
'uint32_t' (aka 'unsigned int') of value 2147502191 (32-bit, unsigned)
to type 'int' changed the value to -2147465105 (32-bit, signed)
#0 0x815e130 in print_radiotap_field ./print-802_11.c:2795:41
Diffstat (limited to 'print-802_11.c')
-rw-r--r-- | print-802_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-802_11.c b/print-802_11.c index 7fcf3994..270870e6 100644 --- a/print-802_11.c +++ b/print-802_11.c @@ -2642,7 +2642,7 @@ enum ieee80211_radiotap_type { static void print_chaninfo(netdissect_options *ndo, - uint16_t freq, int flags, int presentflags) + uint16_t freq, uint32_t flags, uint32_t presentflags) { ND_PRINT("%u MHz", freq); if (presentflags & (1 << IEEE80211_RADIOTAP_MCS)) { |