projects
/
platform
/
upstream
/
coreutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0'...
[platform/upstream/coreutils.git]
/
src
/
nl.c
diff --git
a/src/nl.c
b/src/nl.c
index
62e5e2e
..
d141081
100644
(file)
--- a/
src/nl.c
+++ b/
src/nl.c
@@
-473,7
+473,7
@@
main (int argc, char **argv)
have_read_stdin = 0;
while ((c = getopt_long (argc, argv, "h:b:f:v:i:pl:s:w:n:d:", longopts,
-
(int *) 0)) != EOF
)
+
NULL)) != -1
)
{
switch (c)
{