*: remove a few more cases of argc usage. -89 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
86cfb70ca5
commit
e992bae6f9
20 changed files with 79 additions and 93 deletions
|
@ -69,7 +69,7 @@ static void convert(char *fn, int conv_type)
|
|||
}
|
||||
|
||||
int dos2unix_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
int dos2unix_main(int argc, char **argv)
|
||||
int dos2unix_main(int argc UNUSED_PARAM, char **argv)
|
||||
{
|
||||
int o, conv_type;
|
||||
|
||||
|
@ -88,11 +88,11 @@ int dos2unix_main(int argc, char **argv)
|
|||
if (o)
|
||||
conv_type = o;
|
||||
|
||||
argv += optind;
|
||||
do {
|
||||
/* might be convert(NULL) if there is no filename given */
|
||||
convert(argv[optind], conv_type);
|
||||
optind++;
|
||||
} while (optind < argc);
|
||||
convert(*argv, conv_type);
|
||||
} while (*++argv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue