From 606b933a4fc59128c913aa943252f4a1a821aa5b Mon Sep 17 00:00:00 2001 From: Tor Arntsen Date: Fri, 21 May 2010 14:21:44 +0000 Subject: 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. --- lib/curl_fnmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/curl_fnmatch.c') diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c index 91485a52d..dc9dd605b 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]) -- cgit v1.2.3