Add -Wshadow and deal with the warnings.

This commit is contained in:
Roland C. Dowdeswell
2012-02-21 11:17:55 +00:00
parent cc47c8fa7b
commit e8779d5d4a
39 changed files with 214 additions and 217 deletions

View File

@@ -185,12 +185,12 @@ usage (int ret)
int
main(int argc, char **argv)
{
int optind = 0;
int optidx = 0;
int nreq;
char *end;
setprogname(argv[0]);
if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optidx))
usage(1);
if (help_flag)
usage (0);
@@ -198,8 +198,8 @@ main(int argc, char **argv)
print_version(NULL);
return 0;
}
argc -= optind;
argv += optind;
argc -= optidx;
argv += optidx;
if (argc != 2)
usage (1);