aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r--coreutils/stty.c8
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
1158int stty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 1158int stty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
1159int stty_main(int argc, char **argv) 1159int 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: