aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-01-28 19:58:48 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-01-28 19:58:48 +0000
commit4b4ef53991956c9623b23219f3a64358432990e1 (patch)
treed355a1fd08818520be3b9bacb6e1aa298d013eeb /plugins
parent04cb936dc73546911086602a13fced88af4cf6f7 (diff)
Fix gcc -Wshadow warning.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31721 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index cf06fdc848..d729081097 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -2843,7 +2843,7 @@ read_asn1_type_table(const char *filename)
FILE *f;
guint size;
guchar *data;
- struct stat stat;
+ struct stat file_stat;
static guint mylogh = 0;
if ((filename == 0) || (strlen(filename) == 0))
@@ -2865,8 +2865,8 @@ read_asn1_type_table(const char *filename)
report_open_failure(filename, errno, FALSE);
return;
}
- fstat(fileno(f), &stat);
- size = (int)stat.st_size;
+ fstat(fileno(f), &file_stat);
+ size = (int)file_stat.st_size;
if (size == 0) {
if (asn1_verbose) g_message("file %s is empty, ignored", filename);
fclose(f);