Mercurial > gnulib
diff lib/long-options.c @ 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 | ca8a87089389 |
children | e7da0dec4cd2 |
line wrap: on
line diff
--- a/lib/long-options.c Sun Jan 26 20:01:11 1997 +0000 +++ b/lib/long-options.c Mon Feb 03 05:06:27 1997 +0000 @@ -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) {