diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-02 11:56:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-02 11:56:02 -0500 |
commit | bbd8d071675c278571c804fd0a71b51e7dfa8d7e (patch) | |
tree | b2e13b638657ae8827ffb72c9b9f42cb97126f4b /src/or/cpuworker.c | |
parent | ded33cb2c73151e2f02a8a1d520b54e4f1c14072 (diff) | |
download | tor-bbd8d071675c278571c804fd0a71b51e7dfa8d7e.tar.gz tor-bbd8d071675c278571c804fd0a71b51e7dfa8d7e.zip |
Apply new calloc coccinelle patch
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 1fe472d18c..568d9e42d8 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -510,7 +510,7 @@ spawn_cpuworker(void) connection_t *conn; int err; - fdarray = tor_calloc(sizeof(tor_socket_t), 2); + fdarray = tor_calloc(2, sizeof(tor_socket_t)); if ((err = tor_socketpair(AF_UNIX, SOCK_STREAM, 0, fdarray)) < 0) { log_warn(LD_NET, "Couldn't construct socketpair for cpuworker: %s", tor_socket_strerror(-err)); |