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
/
tac.c
diff --git
a/src/tac.c
b/src/tac.c
index
d81ff6c
..
6b166d7
100644
(file)
--- a/
src/tac.c
+++ b/
src/tac.c
@@
-597,8
+597,7
@@
main (int argc, char **argv)
sentinel_length = 1;
separator_ends_record = 1;
- while ((optc = getopt_long (argc, argv, "brs:", longopts, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "brs:", longopts, NULL)) != -1)
{
switch (optc)
{