diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
commit | 59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch) | |
tree | 2443ceace655d5d830c7c4d7c95869c6a0f93c5c /lib/llist.c | |
parent | a622fd90b4c563a4fced20c5b88cb57537e809b0 (diff) | |
download | curl-59e378f48fed849e8e41f0bc6a10bf7a1732ae8a.tar.gz |
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/llist.c')
-rw-r--r-- | lib/llist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/llist.c b/lib/llist.c index 43d46233e..cd9edad63 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -46,7 +46,7 @@ Curl_llist_alloc(curl_llist_dtor dtor) { struct curl_llist *list; - list = (struct curl_llist *)malloc(sizeof(struct curl_llist)); + list = malloc(sizeof(struct curl_llist)); if(NULL == list) return NULL; @@ -62,8 +62,7 @@ int Curl_llist_insert_next(struct curl_llist *list, struct curl_llist_element *e, const void *p) { - struct curl_llist_element *ne = - (struct curl_llist_element *) malloc(sizeof(struct curl_llist_element)); + struct curl_llist_element *ne = malloc(sizeof(struct curl_llist_element)); if(!ne) return 0; |