projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
getopt: silence clang warning
[pspp]
/
lib
/
getopt.c
diff --git
a/lib/getopt.c
b/lib/getopt.c
index 23510d8afec30de37e89f7d3eeca72854cd6f57e..2af8352ee9c93ba7d19e0c8e34fd37306332b885 100644
(file)
--- a/
lib/getopt.c
+++ b/
lib/getopt.c
@@
-829,7
+829,7
@@
_getopt_internal_r (int argc, char **argv, const char *optstring,
return '?';
}
/* Convenience. Treat POSIX -W foo same as long option --foo */
- if (temp[0] == 'W' && temp[1] == ';')
+ if (temp[0] == 'W' && temp[1] == ';'
&& longopts
)
{
char *nameend;
const struct option *p;