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
/
tr.c
diff --git
a/src/tr.c
b/src/tr.c
index
dcd40aa
..
da0f01b
100644
(file)
--- a/
src/tr.c
+++ b/
src/tr.c
@@
-1837,8
+1837,7
@@
main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((c = getopt_long (argc, argv, "cdst", long_options,
- (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "cdst", long_options, NULL)) != -1)
{
switch (c)
{