From: Kamil Dudka Date: Wed, 26 May 2010 09:12:26 +0000 (+0200) Subject: url.c: avoid implied cast to bool X-Git-Tag: curl-7_21_0~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd8568739c2b67ad069d59a8afcce9e6d3305d5f;p=thirdparty%2Fcurl.git url.c: avoid implied cast to bool --- diff --git a/lib/setup.h b/lib/setup.h index 5fae0926bc..43f98a8680 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -497,7 +497,7 @@ #if defined(_MSC_VER) && !defined(__POCC__) # if !defined(HAVE_WINDOWS_H) || ((_MSC_VER < 1300) && !defined(_FILETIME_)) # if !defined(ALLOW_MSVC6_WITHOUT_PSDK) -# error MSVC 6.0 requires 'February 2003 Platform SDK' a.k.a. 'Windows Server 2003 PSDK' +# error MSVC 6.0 requires "February 2003 Platform SDK" a.k.a. "Windows Server 2003 PSDK" # else # define CURL_DISABLE_LDAP 1 # endif diff --git a/lib/url.c b/lib/url.c index c59535a9c5..8f95c8a660 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2463,7 +2463,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, break; case CURLOPT_WILDCARDMATCH: - data->set.wildcardmatch = va_arg(param, long); + data->set.wildcardmatch = !! va_arg(param, long); break; case CURLOPT_CHUNK_BGN_FUNCTION: data->set.chunk_bgn = va_arg(param, curl_chunk_bgn_callback);