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
/
sum.c
diff --git
a/src/sum.c
b/src/sum.c
index
e4f51e8
..
9e7d252
100644
(file)
--- a/
src/sum.c
+++ b/
src/sum.c
@@
-213,7
+213,7
@@
main (int argc, char **argv)
have_read_stdin = 0;
- while ((optc = getopt_long (argc, argv, "rs", longopts,
(int *) 0
)) != -1)
+ while ((optc = getopt_long (argc, argv, "rs", longopts,
NULL
)) != -1)
{
switch (optc)
{