diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-09-05 15:45:21 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-09-08 18:31:14 +0000 |
commit | fcb6fd3b6fcc6b3ed56cbd81c419b28920f2ec70 (patch) | |
tree | 084eac97fc793b5641d599343880cb4a18e20497 /dumpcap.c | |
parent | e09b03e9b131b3a43e4d8e43cc2c667bcb8d0a68 (diff) |
dumpcap: change types.
Change-Id: I6520971e607623dadcb3ae392ce264bf49c621bd
Reviewed-on: https://code.wireshark.org/review/17499
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -56,6 +56,7 @@ #include <wsutil/cmdarg_err.h> #include <wsutil/crash_info.h> +#include <wsutil/strtoi.h> #include <ws_version_info.h> #ifndef HAVE_GETOPT_LONG @@ -3676,12 +3677,12 @@ capture_loop_queue_packet_cb(u_char *pcap_opts_p, const struct pcap_pkthdr *phdr static int set_80211_channel(const char *iface, const char *opt) { - int freq = 0; + guint32 freq = 0; int type = -1; - int center_freq1 = -1; - int center_freq2 = -1; + guint32 center_freq1 = 0; + guint32 center_freq2 = 0; int args; - int ret; + int ret = 0; gchar **options = NULL; options = g_strsplit_set(opt, ",", 4); @@ -3721,7 +3722,6 @@ set_80211_channel(const char *iface, const char *opt) if (capture_child) pipe_write_block(2, SP_SUCCESS, NULL); - ret = 0; out: g_strfreev(options); |