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