projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17709d
)
curl_fnmatch: Use int not bool when function returns int
author
Tor Arntsen
<tor@spacetec.no>
Fri, 21 May 2010 14:21:44 +0000
(14:21 +0000)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/lib/curl_fnmatch.c
b/lib/curl_fnmatch.c
index
91485a5
..
dc9dd60
100644
(file)
--- 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])