From 43a712743a1e8035bdd618ab77ce84ce474d8e1a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 7 Apr 2008 12:40:05 +0000 Subject: [PATCH] fix compiler warning: assignment within conditional expression --- ares_getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ares_getopt.c b/ares_getopt.c index 3b565a49..177b26fe 100644 --- 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.