From: Tor Arntsen Date: Fri, 21 May 2010 14:21:44 +0000 (+0000) Subject: curl_fnmatch: Use int not bool when function returns int X-Git-Tag: upstream/7.37.1~5040 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=606b933a4fc59128c913aa943252f4a1a821aa5b;p=platform%2Fupstream%2Fcurl.git curl_fnmatch: Use int not bool when function returns int bool in curl internals is unsigned char and should not be used to receive return value from functions returning int - this fails when using IBM VisualAge and Tru64 compilers. --- diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c index 91485a5..dc9dd60 100644 --- a/lib/curl_fnmatch.c +++ b/lib/curl_fnmatch.c @@ -344,7 +344,7 @@ static int loop(const unsigned char *pattern, const unsigned char *string) else if(*p == '[') { unsigned char *pp = p+1; /* cannot handle with pointer to register */ if(setcharset(&pp, charset)) { - bool found = FALSE; + int found = FALSE; if(charset[(unsigned int)*s]) found = TRUE; else if(charset[CURLFNM_ALNUM])