summaryrefslogtreecommitdiff
path: root/lib/curl_fnmatch.c
diff options
context:
space:
mode:
authorTor Arntsen <tor@spacetec.no>2010-05-21 14:21:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2010-05-21 23:42:55 +0200
commit606b933a4fc59128c913aa943252f4a1a821aa5b (patch)
tree0939c0ef01f6d247a15d2c8cef5f8ed4311ed73c /lib/curl_fnmatch.c
parentd17709da31ee04d825a8f93fcf4c87343ce0fad6 (diff)
downloadcurl-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.c2
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])