diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-01-29 16:09:25 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-01-29 16:09:25 +0000 |
commit | e4d6610bd5a46d4b81f34bb82a132f60a6b02835 (patch) | |
tree | b6688a7b2922d82da6c94e25ca74d5753b5c8321 /tap-iostat.c | |
parent | 9cc7ad9f664b3db9767b9a5722ae9395cfc65533 (diff) | |
download | wireshark-e4d6610bd5a46d4b81f34bb82a132f60a6b02835.tar.gz wireshark-e4d6610bd5a46d4b81f34bb82a132f60a6b02835.tar.bz2 wireshark-e4d6610bd5a46d4b81f34bb82a132f60a6b02835.zip |
Fix various gcc -Wshadow warnings.
svn path=/trunk/; revision=31729
Diffstat (limited to 'tap-iostat.c')
-rw-r--r-- | tap-iostat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tap-iostat.c b/tap-iostat.c index 1a9f69f254..a460d03ab0 100644 --- a/tap-iostat.c +++ b/tap-iostat.c @@ -614,13 +614,13 @@ iostat_init(const char *optarg, void* userdata _U_) { float interval_float; gint32 interval; - int pos=0; + int idx=0; io_stat_t *io; const char *filter=NULL; - if(sscanf(optarg,"io,stat,%f,%n",&interval_float,&pos)==1){ - if(pos){ - filter=optarg+pos; + if(sscanf(optarg,"io,stat,%f,%n",&interval_float,&idx)==1){ + if(idx){ + filter=optarg+idx; } else { filter=NULL; } |