projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6290d39
)
(parse_long_options): Compare getopt_long return
author
Jim Meyering
<jim@meyering.net>
Mon, 3 Feb 1997 05:06:27 +0000
(
05:06
+0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 3 Feb 1997 05:06:27 +0000
(
05:06
+0000)
value against -1, not EOF. Use NULL, not `(int *) 0' as last parameter
in getopt_long call.
lib/long-options.c
patch
|
blob
|
history
diff --git
a/lib/long-options.c
b/lib/long-options.c
index cd2c68d64db244e0eea796c7f2c213ca9690684e..baf2c2a1b441ec6498d4d746794e46d56b662e39 100644
(file)
--- a/
lib/long-options.c
+++ b/
lib/long-options.c
@@
-53,7
+53,7
@@
parse_long_options (argc, argv, command_name, package, version, usage)
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)
{