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
/
comm.c
diff --git
a/src/comm.c
b/src/comm.c
index
b329e46
..
c11953e
100644
(file)
--- a/
src/comm.c
+++ b/
src/comm.c
@@
-226,7
+226,7
@@
main (int argc, char **argv)
only_file_2 = 1;
both = 1;
- while ((c = getopt_long (argc, argv, "123", long_options,
(int *) 0)) != EOF
)
+ while ((c = getopt_long (argc, argv, "123", long_options,
NULL)) != -1
)
switch (c)
{
case 0: