[v9_10] clean up gcc -Wshadow warnings

4039.	[cleanup]	Cleaned up warnings from gcc -Wshadow. [RT #37381]
This commit is contained in:
Evan Hunt
2015-01-20 13:43:35 -08:00
parent f9ef9ca233
commit 1ef4faabd5
52 changed files with 485 additions and 549 deletions

View File

@@ -75,10 +75,10 @@ tohexstr(unsigned char *d, unsigned int len, char *out) {
out[0]='\0';
char c_ret[] = "AA";
unsigned int i;
unsigned int j;
strcat(out, "0x");
for (i = 0; i < len; i++) {
sprintf(c_ret, "%02X", d[i]);
for (j = 0; j < len; j++) {
sprintf(c_ret, "%02X", d[j]);
strcat(out, c_ret);
}
strcat(out, "\0");