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
/
uniq.c
diff --git
a/src/uniq.c
b/src/uniq.c
index
237eb11
..
f716f38
100644
(file)
--- a/
src/uniq.c
+++ b/
src/uniq.c
@@
-305,7
+305,7
@@
main (int argc, char **argv)
countmode = count_none;
while ((optc = getopt_long (argc, argv, "0123456789cdf:is:uw:", longopts,
-
(int *) 0)) != EOF
)
+
NULL)) != -1
)
{
switch (optc)
{