summaryrefslogtreecommitdiff
path: root/ares_process.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
commit10461d141401e9ffcdce63efaf03541c66edc210 (patch)
treea96d676b1066cecd5cf0c1a6df7473d3b787aebd /ares_process.c
parentf157b574a9e99c4890b0ab760df9c05cfbac7bfb (diff)
downloadc-ares-10461d141401e9ffcdce63efaf03541c66edc210.tar.gz
c-ares-10461d141401e9ffcdce63efaf03541c66edc210.tar.bz2
c-ares-10461d141401e9ffcdce63efaf03541c66edc210.zip
Make usage of calloc()'s arguments consistent with rest of code base
Diffstat (limited to 'ares_process.c')
-rw-r--r--ares_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_process.c b/ares_process.c
index 0bc3985..5df0f60 100644
--- a/ares_process.c
+++ b/ares_process.c
@@ -732,7 +732,7 @@ void ares__send_query(ares_channel channel, struct query *query,
return;
}
}
- sendreq = calloc(sizeof(struct send_request), 1);
+ sendreq = calloc(1, sizeof(struct send_request));
if (!sendreq)
{
end_query(channel, query, ARES_ENOMEM, NULL, 0);