changeset 880:3bee11a1c21d

(parse_long_options): Compare getopt_long return value against -1, not EOF. Use NULL, not `(int *) 0' as last parameter in getopt_long call.
author Jim Meyering <jim@meyering.net>
date Mon, 03 Feb 1997 05:06:27 +0000
parents 87036a14d651
children bdd51dfe45e2
files lib/long-options.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/long-options.c
+++ b/lib/long-options.c
@@ -53,7 +53,7 @@
   opterr = 0;
 
   if (argc == 2
-      && (c = getopt_long (argc, argv, "+", long_options, (int *) 0)) != EOF)
+      && (c = getopt_long (argc, argv, "+", long_options, NULL)) != -1)
     {
       switch (c)
 	{