aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-01-29 16:09:25 +0000
committerBill Meier <wmeier@newsguy.com>2010-01-29 16:09:25 +0000
commite4d6610bd5a46d4b81f34bb82a132f60a6b02835 (patch)
treeb6688a7b2922d82da6c94e25ca74d5753b5c8321 /tshark.c
parent9cc7ad9f664b3db9767b9a5722ae9395cfc65533 (diff)
Fix various gcc -Wshadow warnings.
svn path=/trunk/; revision=31729
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tshark.c b/tshark.c
index b925efcab1..a7dc8b2e0e 100644
--- a/tshark.c
+++ b/tshark.c
@@ -762,7 +762,7 @@ main(int argc, char *argv[])
struct bpf_program fcode;
#endif
dfilter_t *rfcode = NULL;
- e_prefs *prefs;
+ e_prefs *prefs_p;
char badopt;
GLogLevelFlags log_flags;
int optind_initial;
@@ -926,7 +926,7 @@ main(int argc, char *argv[])
/* Set the C-language locale to the native environment. */
setlocale(LC_ALL, "");
- prefs = read_prefs(&gpf_open_errno, &gpf_read_errno, &gpf_path,
+ prefs_p = read_prefs(&gpf_open_errno, &gpf_read_errno, &gpf_path,
&pf_open_errno, &pf_read_errno, &pf_path);
if (gpf_path != NULL) {
if (gpf_open_errno != 0) {
@@ -952,7 +952,7 @@ main(int argc, char *argv[])
}
/* Set the name resolution code's flags from the preferences. */
- g_resolv_flags = prefs->name_resolve;
+ g_resolv_flags = prefs_p->name_resolve;
/* Read the disabled protocols file. */
read_disabled_protos_list(&gdp_path, &gdp_open_errno, &gdp_read_errno,
@@ -1445,7 +1445,7 @@ main(int argc, char *argv[])
}
/* Build the column format array */
- build_column_format_array(&cfile.cinfo, prefs->num_cols, TRUE);
+ build_column_format_array(&cfile.cinfo, prefs_p->num_cols, TRUE);
#ifdef HAVE_LIBPCAP
capture_opts_trim_snaplen(&global_capture_opts, MIN_PACKET_SIZE);
@@ -1581,7 +1581,7 @@ main(int argc, char *argv[])
/* trim the interface name and exit if that failed */
if (!capture_opts_trim_iface(&global_capture_opts,
- (prefs->capture_device) ? get_if_name(prefs->capture_device) : NULL)) {
+ (prefs_p->capture_device) ? get_if_name(prefs_p->capture_device) : NULL)) {
exit(2);
}