diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 13:40:43 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 13:40:43 +0000 |
commit | d571064b65195aa7c71200af549a95404a2f0ce1 (patch) | |
tree | d286c51154ffa31de4ecfd6d81e606fe1ad3c4b7 /lib/cookie.c | |
parent | 33eaf2e18b520bbab2047b2b2ecba2e2e40102c3 (diff) | |
download | curl-d571064b65195aa7c71200af549a95404a2f0ce1.tar.gz |
Clear up int/long/size_t/ssize_t usage a bit
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index fa6194448..7b9caf3c8 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -115,8 +115,8 @@ free_cookiemess(struct Cookie *co) static bool tailmatch(const char *little, const char *bigone) { - unsigned int littlelen = strlen(little); - unsigned int biglen = strlen(bigone); + size_t littlelen = strlen(little); + size_t biglen = strlen(bigone); if(littlelen > biglen) return FALSE; @@ -192,7 +192,7 @@ Curl_cookie_add(struct SessionHandle *data, char *whatptr; /* Strip off trailing whitespace from the 'what' */ - int len=strlen(what); + size_t len=strlen(what); while(len && isspace((int)what[len-1])) { what[len-1]=0; len--; @@ -360,7 +360,7 @@ Curl_cookie_add(struct SessionHandle *data, /* no path was given in the header line, set the default now */ char *endslash = strrchr(path, '/'); if(endslash) { - int pathlen = endslash-path+1; /* include the ending slash */ + size_t pathlen = endslash-path+1; /* include the ending slash */ co->path=malloc(pathlen+1); /* one extra for the zero byte */ if(co->path) { memcpy(co->path, path, pathlen); |