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/uniq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/uniq.c') diff --git a/src/uniq.c b/src/uniq.c index 237eb1124..f716f38ea 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -305,7 +305,7 @@ main (int argc, char **argv) countmode = count_none; while ((optc = getopt_long (argc, argv, "0123456789cdf:is:uw:", longopts, - (int *) 0)) != EOF) + NULL)) != -1) { switch (optc) { -- cgit v1.2.3-54-g00ecf