summaryrefslogtreecommitdiff
path: root/capture_opts.c
diff options
context:
space:
mode:
authorGraham Bloice <graham.bloice@trihedral.com>2014-07-14 15:22:53 +0100
committerGraham Bloice <graham.bloice@trihedral.com>2014-07-14 14:25:36 +0000
commite11db2ea032080f07e38acb00b2e4ea3a224b366 (patch)
treebbea6f1d2ab74a52abb88239ba31a0dd4a7711be /capture_opts.c
parent560762044def0985f8dabd759bf3cfd7c62523cd (diff)
downloadwireshark-e11db2ea032080f07e38acb00b2e4ea3a224b366.tar.gz
Rename parameter if_index to stop clang warning:
capture_opts.c:1017:61: error: declaration of 'index' shadows a global declaration [-Werror=shadow] Change-Id: Ie409b4fa7abeb85e460bea398735cdc98d9034b1 Reviewed-on: https://code.wireshark.org/review/3041 Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 1d4921fa91..7b92f74760 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -1014,11 +1014,11 @@ capture_opts_output_to_pipe(const char *save_file, gboolean *is_pipe)
}
void
-capture_opts_del_iface(capture_options *capture_opts, guint index)
+capture_opts_del_iface(capture_options *capture_opts, guint if_index)
{
interface_options interface_opts;
- interface_opts = g_array_index(capture_opts->ifaces, interface_options, index);
+ interface_opts = g_array_index(capture_opts->ifaces, interface_options, if_index);
/* XXX - check if found? */
g_free(interface_opts.name);
@@ -1034,7 +1034,7 @@ capture_opts_del_iface(capture_options *capture_opts, guint index)
g_free(interface_opts.auth_password);
}
#endif
- capture_opts->ifaces = g_array_remove_index(capture_opts->ifaces, index);
+ capture_opts->ifaces = g_array_remove_index(capture_opts->ifaces, if_index);
}