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/join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/join.c') diff --git a/src/join.c b/src/join.c index d84f62d39..b46275ec5 100644 --- a/src/join.c +++ b/src/join.c @@ -773,7 +773,7 @@ main (int argc, char **argv) print_pairables = 1; while ((optc = getopt_long_only (argc, argv, "-a:e:i1:2:o:t:v:", longopts, - (int *) 0)) != EOF) + NULL)) != -1) { long int val; -- cgit v1.2.3-54-g00ecf