diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-03 05:06:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-03 05:06:27 +0000 |
commit | 1b5a74d1a7635a97dbf579c4ff8a507778c9e15c (patch) | |
tree | b3c2ff3bab3f67b7fb530e415ff8ff789db26f06 /lib | |
parent | a2ffd5db028b9afdd2c34ac52af0d0083dc5669e (diff) | |
download | coreutils-1b5a74d1a7635a97dbf579c4ff8a507778c9e15c.tar.xz |
(parse_long_options): Compare getopt_long return
value against -1, not EOF. Use NULL, not `(int *) 0' as last parameter
in getopt_long call.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/long-options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/long-options.c b/lib/long-options.c index cd2c68d64..baf2c2a1b 100644 --- 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) { |