diff options
Diffstat (limited to 'src/stty.c')
-rw-r--r-- | src/stty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stty.c b/src/stty.c index a8902f0d3..e2167765e 100644 --- a/src/stty.c +++ b/src/stty.c @@ -673,8 +673,7 @@ main (int argc, char **argv) /* Recognize the long options only. */ opterr = 0; - while ((optc = getopt_long_only (argc, argv, "ag", longopts, (int *) 0)) - != EOF) + while ((optc = getopt_long_only (argc, argv, "ag", longopts, NULL)) != -1) { switch (optc) { |