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/multi.c | |
parent | 861b647e7b1da564b831a5b07312a30feb7b6c58 (diff) | |
download | curl-a622fd90b4c563a4fced20c5b88cb57537e809b0.tar.gz |
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/multi.c b/lib/multi.c index f49d42699..acf43a204 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -358,7 +358,7 @@ static struct curl_hash *sh_init(void) CURLM *curl_multi_init(void) { - struct Curl_multi *multi = (void *)calloc(sizeof(struct Curl_multi), 1); + struct Curl_multi *multi = calloc(sizeof(struct Curl_multi), 1); if(!multi) return NULL; @@ -419,7 +419,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle, return CURLM_BAD_EASY_HANDLE; /* Now, time to add an easy handle to the multi stack */ - easy = (struct Curl_one_easy *)calloc(sizeof(struct Curl_one_easy), 1); + easy = calloc(sizeof(struct Curl_one_easy), 1); if(!easy) return CURLM_OUT_OF_MEMORY; @@ -2181,7 +2181,7 @@ static void add_closure(struct Curl_multi *multi, struct SessionHandle *data) { int i; - struct closure *cl = (struct closure *)calloc(sizeof(struct closure), 1); + struct closure *cl = calloc(sizeof(struct closure), 1); struct closure *p=NULL; struct closure *n; if(cl) { |