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
/
unexpand.c
diff --git
a/src/unexpand.c
b/src/unexpand.c
index
0d04ced
..
9c13c51
100644
(file)
--- a/
src/unexpand.c
+++ b/
src/unexpand.c
@@
-408,8
+408,7
@@
main (int argc, char **argv)
tab_list = NULL;
first_free_tab = 0;
- while ((c = getopt_long (argc, argv, "at:,0123456789", longopts, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "at:,0123456789", longopts, NULL)) != -1)
{
switch (c)
{