From: Amos Jeffries Date: Wed, 2 Jan 2013 11:09:45 +0000 (+1300) Subject: Bug 3676: fix shadowed variable in negotiate_wrapper X-Git-Tag: SQUID_3_4_0_1~398 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72841dbbd798ba8cc4a29591376950bc0d3f47ef;p=thirdparty%2Fsquid.git Bug 3676: fix shadowed variable in negotiate_wrapper Detected by GCC 4.7 with -Wshadow --- diff --git a/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc b/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc index fb767902ec..7be404e772 100644 --- a/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc +++ b/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc @@ -114,7 +114,6 @@ main(int argc, char *const argv[]) int nend = 0, kend = 0; char *token; char **nargs, **kargs; - int i,j; int fpid; FILE *FDKIN,*FDKOUT; FILE *FDNIN,*FDNOUT; @@ -131,13 +130,13 @@ main(int argc, char *const argv[]) return 0; } - j = 1; + int j = 1; if (!strncasecmp(argv[1],"-d",2)) { debug = 1; j = 2; } - for (i=j; i