diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-18 10:33:54 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-18 10:33:54 +0000 |
commit | 59939313f8452a9d817c178425c2ba3b91798ea9 (patch) | |
tree | 2f394dd93b80a64e70c29062ac7adca1fa9e024a /lib/multi.c | |
parent | 961c504ca57b87fa530072f00f7643da77ca4386 (diff) | |
download | curl-59939313f8452a9d817c178425c2ba3b91798ea9.tar.gz |
Make usage of calloc()'s arguments consistent with rest of code base
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/multi.c b/lib/multi.c index 3525af65b..2210c2fa9 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -282,7 +282,7 @@ static struct Curl_sh_entry *sh_addentry(struct curl_hash *sh, return there; /* not present, add it */ - check = calloc(sizeof(struct Curl_sh_entry), 1); + check = calloc(1, sizeof(struct Curl_sh_entry)); if(!check) return NULL; /* major failure */ check->easy = data; @@ -364,7 +364,7 @@ static struct curl_hash *sh_init(void) CURLM *curl_multi_init(void) { - struct Curl_multi *multi = calloc(sizeof(struct Curl_multi), 1); + struct Curl_multi *multi = calloc(1, sizeof(struct Curl_multi)); if(!multi) return NULL; @@ -425,7 +425,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 = calloc(sizeof(struct Curl_one_easy), 1); + easy = calloc(1, sizeof(struct Curl_one_easy)); if(!easy) return CURLM_OUT_OF_MEMORY; @@ -2393,7 +2393,7 @@ static void add_closure(struct Curl_multi *multi, struct SessionHandle *data) { int i; - struct closure *cl = calloc(sizeof(struct closure), 1); + struct closure *cl = calloc(1, sizeof(struct closure)); struct closure *p=NULL; struct closure *n; if(cl) { |