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
/
cat.c
diff --git
a/src/cat.c
b/src/cat.c
index
d8594cb
..
186cc98
100644
(file)
--- a/
src/cat.c
+++ b/
src/cat.c
@@
-512,8
+512,7
@@
main (int argc, char **argv)
/* Parse command line options. */
- while ((c = getopt_long (argc, argv, "benstuvAET", long_options, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "benstuvAET", long_options, NULL)) != -1)
{
switch (c)
{