summaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-31 10:17:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-09-01 10:40:42 +0200
commit1a890997a47d4d22df58b5183181685e49ed6e61 (patch)
treed6510eb7592ca21eb554c23795c12daacccf1694 /lib/cookie.c
parent9dda13bbac1938c13ddf0a9cc4d9dd0302ff0331 (diff)
downloadcurl-1a890997a47d4d22df58b5183181685e49ed6e61.tar.gz
all: s/int/size_t cleanup
Assisted-by: Rikard Falkeborn Closes #2922
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 5a8e4fc65..fd7341f0b 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -250,9 +250,9 @@ static const char *get_top_domain(const char * const domain, size_t *outlen)
len = strlen(domain);
last = memrchr(domain, '.', len);
if(last) {
- first = memrchr(domain, '.', (size_t) (last - domain));
+ first = memrchr(domain, '.', (last - domain));
if(first)
- len -= (size_t) (++first - domain);
+ len -= (++first - domain);
}
if(outlen)
@@ -717,9 +717,9 @@ Curl_cookie_add(struct Curl_easy *data,
if(!queryp)
endslash = strrchr(path, '/');
else
- endslash = memrchr(path, '/', (size_t)(queryp - path));
+ endslash = memrchr(path, '/', (queryp - path));
if(endslash) {
- size_t pathlen = (size_t)(endslash-path + 1); /* include end slash */
+ size_t pathlen = (endslash-path + 1); /* include end slash */
co->path = malloc(pathlen + 1); /* one extra for the zero byte */
if(co->path) {
memcpy(co->path, path, pathlen);