X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Fevent_iocp.c;h=4321281002b7816012f4014a42242a55e8cd51fa;hb=071887b8a84c7111477d9e1fcc8be9ea2b0c47e5;hp=75fe4627eb00c6df3c25bb5ac72ed4e8d73250c7;hpb=15c1fc2f2328736dd428ec3be37c893d8ee2e065;p=netatalk.git diff --git a/libevent/event_iocp.c b/libevent/event_iocp.c index 75fe4627..43212810 100644 --- a/libevent/event_iocp.c +++ b/libevent/event_iocp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2010 Niels Provos, Nick Mathewson + * Copyright (c) 2009-2012 Niels Provos, Nick Mathewson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -183,7 +183,7 @@ event_iocp_port_launch(int n_cpus) if (n_cpus <= 0) n_cpus = N_CPUS_DEFAULT; port->n_threads = n_cpus * 2; - port->threads = calloc(port->n_threads, sizeof(HANDLE)); + port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); if (!port->threads) goto err;