aboutsummaryrefslogtreecommitdiff
path: root/lib/hostthre.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-18 10:33:54 +0000
committerYang Tse <yangsita@gmail.com>2009-11-18 10:33:54 +0000
commit59939313f8452a9d817c178425c2ba3b91798ea9 (patch)
tree2f394dd93b80a64e70c29062ac7adca1fa9e024a /lib/hostthre.c
parent961c504ca57b87fa530072f00f7643da77ca4386 (diff)
Make usage of calloc()'s arguments consistent with rest of code base
Diffstat (limited to 'lib/hostthre.c')
-rw-r--r--lib/hostthre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 688006d2b..2ff9c4a07 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -396,7 +396,7 @@ static bool init_resolve_thread (struct connectdata *conn,
const char *hostname, int port,
const struct addrinfo *hints)
{
- struct thread_data *td = calloc(sizeof(*td), 1);
+ struct thread_data *td = calloc(1, sizeof(struct thread_data));
HANDLE thread_and_event[2] = {0};
if(!td) {