diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 04:47:14 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 04:47:14 +0000 |
commit | a622fd90b4c563a4fced20c5b88cb57537e809b0 (patch) | |
tree | b0b3c28505d41d062f7828c0d1e13e3aa9a351a8 /lib/cookie.c | |
parent | 861b647e7b1da564b831a5b07312a30feb7b6c58 (diff) |
remove unnecessary typecasting of calloc()
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 93d088d75..fada612dd 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -190,7 +190,7 @@ Curl_cookie_add(struct SessionHandle *data, #endif /* First, alloc and init a new struct for it */ - co = (struct Cookie *)calloc(sizeof(struct Cookie), 1); + co = calloc(sizeof(struct Cookie), 1); if(!co) return NULL; /* bail out if we're this low on memory */ @@ -683,7 +683,7 @@ struct CookieInfo *Curl_cookie_init(struct SessionHandle *data, if(NULL == inc) { /* we didn't get a struct, create one */ - c = (struct CookieInfo *)calloc(1, sizeof(struct CookieInfo)); + c = calloc(1, sizeof(struct CookieInfo)); if(!c) return NULL; /* failed to get memory */ c->filename = strdup(file?file:"none"); /* copy the name just in case */ |