summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/cookie.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:29:15 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:29:15 (GMT)
commit8174deb9e998199fc4aa828664d57dedc3f8a683 (patch)
treef8d3845260623d8240db1db2109102967df512a9 /Source/CTest/Curl/cookie.c
parent6e143754beaf7c275c73b5c501419e3ac0b40839 (diff)
downloadCMake-8174deb9e998199fc4aa828664d57dedc3f8a683.zip
CMake-8174deb9e998199fc4aa828664d57dedc3f8a683.tar.gz
CMake-8174deb9e998199fc4aa828664d57dedc3f8a683.tar.bz2
ERR: Remove warnings
Diffstat (limited to 'Source/CTest/Curl/cookie.c')
-rw-r--r--Source/CTest/Curl/cookie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/Curl/cookie.c b/Source/CTest/Curl/cookie.c
index a5af458..b5569c0 100644
--- a/Source/CTest/Curl/cookie.c
+++ b/Source/CTest/Curl/cookie.c
@@ -186,7 +186,7 @@ Curl_cookie_add(struct CookieInfo *c,
}
else if(strequal("domain", name)) {
co->domain=strdup(whatptr);
- co->field1= (whatptr[0]=='.')?2:1;
+ co->field1= (char)((whatptr[0]=='.')?2:1);
}
else if(strequal("version", name)) {
co->version=strdup(whatptr);
@@ -314,7 +314,7 @@ Curl_cookie_add(struct CookieInfo *c,
We don't currently take advantage of this knowledge.
*/
- co->field1=strequal(ptr, "TRUE")+1; /* store information */
+ co->field1=(char)(strequal(ptr, "TRUE")+1); /* store information */
break;
case 2:
/* It turns out, that sometimes the file format allows the path
@@ -330,7 +330,7 @@ Curl_cookie_add(struct CookieInfo *c,
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);