curl_fnmatch: Use int not bool when function returns int
authorTor Arntsen <tor@spacetec.no>
Fri, 21 May 2010 14:21:44 +0000 (14:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 May 2010 21:42:55 +0000 (23:42 +0200)
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

index 91485a5..dc9dd60 100644 (file)
@@ -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])