1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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.
This commit is contained in:
Tor Arntsen 2010-05-21 14:21:44 +00:00 committed by Daniel Stenberg
parent d17709da31
commit 606b933a4f

View 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])