aboutsummaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-10 09:41:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-10 09:41:37 +0000
commit9948250723c091b50cc409c39436b9d7f422dbc0 (patch)
tree2f404b28788246980292162ece4f4a000a2969a1 /lib/cookie.c
parent47afa058a83bc8d969bb44700f8d4f04b46bbcbe (diff)
strequal() returns int so we typecast the return to bool when we store the
result as bool
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index d566df503..097a7d03b 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -121,7 +121,7 @@ static bool tailmatch(const char *little, const char *bigone)
if(littlelen > biglen)
return FALSE;
- return strequal(little, bigone+biglen-littlelen);
+ return (bool)strequal(little, bigone+biglen-littlelen);
}
/****************************************************************************
@@ -415,7 +415,7 @@ Curl_cookie_add(struct SessionHandle *data,
As far as I can see, it is set to true when the cookie says
.domain.com and to false when the domain is complete www.domain.com
*/
- co->tailmatch=strequal(ptr, "TRUE"); /* store information */
+ co->tailmatch=(bool)strequal(ptr, "TRUE"); /* store information */
break;
case 2:
/* It turns out, that sometimes the file format allows the path
@@ -431,7 +431,7 @@ Curl_cookie_add(struct SessionHandle *data,
fields++; /* add a field and fall down to secure */
/* FALLTHROUGH */
case 3:
- co->secure = strequal(ptr, "TRUE");
+ co->secure = (bool)strequal(ptr, "TRUE");
break;
case 4:
co->expires = atoi(ptr);