diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-26 13:08:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-26 13:08:49 +0000 |
commit | 6b1220b61d5ed2481dbf31714a68be6ef6eed3da (patch) | |
tree | 2fdb2eb09bbfae448dc87dc0e9fc214452cb12e1 /lib/cookie.c | |
parent | 9d7330d8790be54c3885e23359b25534974cfb82 (diff) | |
download | curl-6b1220b61d5ed2481dbf31714a68be6ef6eed3da.tar.gz |
Cory Nelson's work on nuking compiler warnings when building on x64 with
VS2005.
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index e608f72e1..019c00b71 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -309,7 +309,7 @@ Curl_cookie_add(struct SessionHandle *data, break; } co->expires = - atoi((*co->maxage=='\"')?&co->maxage[1]:&co->maxage[0]) + now; + atoi((*co->maxage=='\"')?&co->maxage[1]:&co->maxage[0]) + (long)now; } else if(strequal("expires", name)) { co->expirestr=strdup(whatptr); @@ -317,7 +317,7 @@ Curl_cookie_add(struct SessionHandle *data, badcookie = TRUE; break; } - co->expires = curl_getdate(what, &now); + co->expires = (long)curl_getdate(what, &now); } else if(!co->name) { co->name = strdup(name); |