aboutsummaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
commit59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch)
tree2443ceace655d5d830c7c4d7c95869c6a0f93c5c /lib/cookie.c
parenta622fd90b4c563a4fced20c5b88cb57537e809b0 (diff)
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index fada612dd..59df3b64f 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -711,7 +711,7 @@ struct CookieInfo *Curl_cookie_init(struct SessionHandle *data,
char *lineptr;
bool headerline;
- char *line = (char *)malloc(MAX_COOKIE_LINE);
+ char *line = malloc(MAX_COOKIE_LINE);
if(line) {
while(fgets(line, MAX_COOKIE_LINE, fp)) {
if(checkprefix("Set-Cookie:", line)) {
@@ -789,7 +789,7 @@ struct Cookie *Curl_cookie_getlist(struct CookieInfo *c,
/* and now, we know this is a match and we should create an
entry for the return-linked-list */
- newco = (struct Cookie *)malloc(sizeof(struct Cookie));
+ newco = malloc(sizeof(struct Cookie));
if(newco) {
/* first, copy the whole source cookie: */
memcpy(newco, co, sizeof(struct Cookie));