summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-02-20 17:01:44 +0000
committerJim Meyering <jim@meyering.net>1994-02-20 17:01:44 +0000
commit31b899e2e1dbd263fe5ba4dbeb74b4d587897be0 (patch)
tree235a4d14fc77e223f89a27c3ee0cce4f0985bfcf /src/stty.c
parent01b914a12e084e729e57e355e188485dbcfeb593 (diff)
downloadcoreutils-31b899e2e1dbd263fe5ba4dbeb74b4d587897be0.tar.xz
merge with 1.9.4
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stty.c b/src/stty.c
index 1b9b9242d..3232a5bf9 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -647,7 +647,8 @@ main (argc, argv)
/* Recognize the long options only. */
opterr = 0;
- while ((optc = getopt_long (argc, argv, "", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long_only (argc, argv, "ag", longopts, (int *) 0))
+ != EOF)
{
switch (optc)
{
@@ -717,8 +718,8 @@ main (argc, argv)
if (verbose_output || recoverable_output || argc == 1)
{
- max_col = screen_columns ();
- current_col = 0;
+ max_col = screen_columns ();
+ current_col = 0;
display_settings (output_type, &mode);
exit (0);
}