Skip to content

Commit

Permalink
curl_fnmatch: Use int not bool when function returns int
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tor Arntsen authored and bagder committed May 21, 2010
1 parent d17709d commit 606b933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curl_fnmatch.c
Expand Up @@ -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])
Expand Down

0 comments on commit 606b933

Please sign in to comment.