diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-09-08 11:40:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-09-08 18:40:49 +0000 |
commit | a1368ce47d155cb00437c7189285808a3271e3c9 (patch) | |
tree | 62ddbf65f7b558a96fe1a37843ed24a813667364 /dumpcap.c | |
parent | 83eb448dfcf7804582f904a8f253718bbfbd5e3c (diff) | |
download | wireshark-a1368ce47d155cb00437c7189285808a3271e3c9.tar.gz wireshark-a1368ce47d155cb00437c7189285808a3271e3c9.tar.bz2 wireshark-a1368ce47d155cb00437c7189285808a3271e3c9.zip |
Use get_nonzero_guint32() to fetch guint32 values.
Change-Id: I3adeb2974b1093270bec12039cd855c92f660f4d
Reviewed-on: https://code.wireshark.org/review/17588
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3689,7 +3689,7 @@ set_80211_channel(const char *iface, const char *opt) for (args = 0; options[args]; args++); if (options[0]) - freq = get_positive_int(options[0], "802.11 channel frequency"); + freq = get_nonzero_guint32(options[0], "802.11 channel frequency"); if (args >= 1 && options[1]) { type = ws80211_str_to_chan_type(options[1]); @@ -3701,10 +3701,10 @@ set_80211_channel(const char *iface, const char *opt) } if (args >= 2 && options[2]) - center_freq1 = get_positive_int(options[2], "VHT center frequency"); + center_freq1 = get_nonzero_guint32(options[2], "VHT center frequency"); if (args >= 3 && options[3]) - center_freq2 = get_positive_int(options[3], "VHT center frequency 2"); + center_freq2 = get_nonzero_guint32(options[3], "VHT center frequency 2"); ret = ws80211_init(); if (ret) { |