mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:23:34 +03:00
remove unnecessary typecasting of calloc()
This commit is contained in:
parent
861b647e7b
commit
a622fd90b4
15 changed files with 25 additions and 27 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue