diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-28 15:18:53 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-28 15:18:53 +0100 |
commit | e992bae6f9adf3718c6263a36c004ead1c7272a8 (patch) | |
tree | f0bc9e4fa145f58ab3f9838902e09f9cfba29648 /coreutils/stty.c | |
parent | 86cfb70ca5f2bde11f2d071bc59db75291d8552f (diff) | |
download | busybox-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/stty.c')
-rw-r--r-- | coreutils/stty.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index f29fa64f7..0485b8011 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -1156,7 +1156,7 @@ static void set_control_char_or_die(const struct control_info *info, | |||
1156 | #define STTY_noargs (1 << 4) | 1156 | #define STTY_noargs (1 << 4) |
1157 | 1157 | ||
1158 | int stty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 1158 | int stty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
1159 | int stty_main(int argc, char **argv) | 1159 | int stty_main(int argc UNUSED_PARAM, char **argv) |
1160 | { | 1160 | { |
1161 | struct termios mode; | 1161 | struct termios mode; |
1162 | void (*output_func)(const struct termios *, const int); | 1162 | void (*output_func)(const struct termios *, const int); |
@@ -1211,8 +1211,10 @@ int stty_main(int argc, char **argv) | |||
1211 | if (!file_name) | 1211 | if (!file_name) |
1212 | bb_error_msg_and_die(bb_msg_requires_arg, "-F"); | 1212 | bb_error_msg_and_die(bb_msg_requires_arg, "-F"); |
1213 | /* remove -F param from arg[vc] */ | 1213 | /* remove -F param from arg[vc] */ |
1214 | --argc; | 1214 | while (argv[p]) { |
1215 | while (argv[p]) { argv[p] = argv[p+1]; ++p; } | 1215 | argv[p] = argv[p+1]; |
1216 | ++p; | ||
1217 | } | ||
1216 | } | 1218 | } |
1217 | goto end_option; | 1219 | goto end_option; |
1218 | default: | 1220 | default: |