projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b31a21
)
fix compiler warning: assignment within conditional expression
author
Yang Tse
<yangsita@gmail.com>
Mon, 7 Apr 2008 12:40:05 +0000
(12:40 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 7 Apr 2008 12:40:05 +0000
(12:40 +0000)
ares_getopt.c
patch
|
blob
|
history
diff --git
a/ares_getopt.c
b/ares_getopt.c
index 3b565a49a1a6e1b8a045a3b0435e262fc0d3ac9f..177b26feaeed389e115b36f4380e12fee48f2451 100644
(file)
--- a/
ares_getopt.c
+++ b/
ares_getopt.c
@@
-82,7
+82,7
@@
ares_getopt(int nargc, char * const nargv[], const char *ostr)
}
} /* option letter okay? */
if ((optopt = (int)*place++) == (int)':' ||
-
!(oli = strchr(ostr, optopt))
) {
+
(oli = strchr(ostr, optopt)) == NULL
) {
/*
* if the user didn't specify '-' as an option,
* assume it means EOF.