doc: fix the order of arguments to calloc()

PR-URL: https://github.com/libuv/libuv/pull/2835
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
MasterDuke17 2020-05-06 20:52:11 +01:00 committed by cjihrig
parent b4fe4f6ad9
commit 5a0779ba32
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -70,7 +70,7 @@ void setup_workers() {
child_worker_count = cpu_count;
workers = calloc(sizeof(struct child_worker), cpu_count);
workers = calloc(cpu_count, sizeof(struct child_worker));
while (cpu_count--) {
struct child_worker *worker = &workers[cpu_count];
uv_pipe_init(loop, &worker->pipe, 1);