diff options
author | Tor Arntsen <tor@spacetec.no> | 2010-05-21 14:21:44 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-05-21 23:42:55 +0200 |
commit | 606b933a4fc59128c913aa943252f4a1a821aa5b (patch) | |
tree | 0939c0ef01f6d247a15d2c8cef5f8ed4311ed73c /lib/curl_fnmatch.c | |
parent | d17709da31ee04d825a8f93fcf4c87343ce0fad6 (diff) | |
download | curl-606b933a4fc59128c913aa943252f4a1a821aa5b.tar.gz |
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.
Diffstat (limited to 'lib/curl_fnmatch.c')
-rw-r--r-- | lib/curl_fnmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |