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/pathchk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathchk.c') diff --git a/src/pathchk.c b/src/pathchk.c index c8346148e..db8e23496 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -124,7 +124,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - while ((optc = getopt_long (argc, argv, "p", longopts, (int *) 0)) != EOF) + while ((optc = getopt_long (argc, argv, "p", longopts, NULL)) != -1) { switch (optc) { -- cgit v1.2.3-54-g00ecf