mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
lib: use bool/TRUE/FALSE properly
booleans should use the type 'bool' and set the value to TRUE/FALSE non-booleans should not be 'bool' and should not set the value to TRUE/FALSE Closes #15123
This commit is contained in:
parent
78ed473dbc
commit
bcec0840b0
44 changed files with 222 additions and 222 deletions
|
|
@ -161,7 +161,7 @@ static void setcharorrange(unsigned char **pp, unsigned char *charset)
|
|||
}
|
||||
}
|
||||
|
||||
/* returns 1 (true) if pattern is OK, 0 if is bad ("p" is pattern pointer) */
|
||||
/* returns 1 (TRUE) if pattern is OK, 0 if is bad ("p" is pattern pointer) */
|
||||
static int setcharset(unsigned char **p, unsigned char *charset)
|
||||
{
|
||||
setcharset_state state = CURLFNM_SCHS_DEFAULT;
|
||||
|
|
@ -303,7 +303,7 @@ static int loop(const unsigned char *pattern, const unsigned char *string,
|
|||
case '[':
|
||||
pp = p + 1; /* Copy in case of syntax error in set. */
|
||||
if(setcharset(&pp, charset)) {
|
||||
int found = FALSE;
|
||||
bool found = FALSE;
|
||||
if(!*s)
|
||||
return CURL_FNMATCH_NOMATCH;
|
||||
if(charset[(unsigned int)*s])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue