aboutsummaryrefslogtreecommitdiff
path: root/coreutils/dos2unix.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-28 15:18:53 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-28 15:18:53 +0100
commite992bae6f9adf3718c6263a36c004ead1c7272a8 (patch)
treef0bc9e4fa145f58ab3f9838902e09f9cfba29648 /coreutils/dos2unix.c
parent86cfb70ca5f2bde11f2d071bc59db75291d8552f (diff)
downloadbusybox-w32-e992bae6f9adf3718c6263a36c004ead1c7272a8.tar.gz
busybox-w32-e992bae6f9adf3718c6263a36c004ead1c7272a8.tar.bz2
busybox-w32-e992bae6f9adf3718c6263a36c004ead1c7272a8.zip
*: remove a few more cases of argc usage. -89 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/dos2unix.c')
-rw-r--r--coreutils/dos2unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index baf879e54..1911f5319 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -69,7 +69,7 @@ static void convert(char *fn, int conv_type)
69} 69}
70 70
71int dos2unix_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 71int dos2unix_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
72int dos2unix_main(int argc, char **argv) 72int dos2unix_main(int argc UNUSED_PARAM, char **argv)
73{ 73{
74 int o, conv_type; 74 int o, conv_type;
75 75
@@ -88,11 +88,11 @@ int dos2unix_main(int argc, char **argv)
88 if (o) 88 if (o)
89 conv_type = o; 89 conv_type = o;
90 90
91 argv += optind;
91 do { 92 do {
92 /* might be convert(NULL) if there is no filename given */ 93 /* might be convert(NULL) if there is no filename given */
93 convert(argv[optind], conv_type); 94 convert(*argv, conv_type);
94 optind++; 95 } while (*++argv);
95 } while (optind < argc);
96 96
97 return 0; 97 return 0;
98} 98}