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:
parent
b4fe4f6ad9
commit
5a0779ba32
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user