From c2d2dec516bd776d6acba7637d2e9ee721394604 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 1 Feb 1997 02:00:04 +0000 Subject: Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call. --- src/tail.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tail.c') diff --git a/src/tail.c b/src/tail.c index cede32010..b774606d6 100644 --- a/src/tail.c +++ b/src/tail.c @@ -993,8 +993,7 @@ parse_options (int argc, char **argv, count_lines = 1; forever = forever_multiple = from_start = print_headers = 0; - while ((c = getopt_long (argc, argv, "c:n:fqv", long_options, (int *) 0)) - != EOF) + while ((c = getopt_long (argc, argv, "c:n:fqv", long_options, NULL)) != -1) { switch (c) { -- cgit v1.2.3-54-g00ecf