From b8c82a8e39e901c6b231217a009982a0e0b782a6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 1 Feb 1997 03:05:36 +0000 Subject: Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call. --- src/stty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/stty.c') 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) { -- cgit v1.2.3-54-g00ecf