From a46085676d1c269add9a575f816f0514f96d8419 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 15 Dec 2018 18:21:18 +0100 Subject: [PATCH] daemon/plugin.c: remove unneccesary casts --- src/daemon/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index bbf6144d..13d4891d 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -627,7 +627,7 @@ static void start_read_threads(size_t num) /* {{{ */ if (read_threads != NULL) return; - read_threads = (pthread_t *)calloc(num, sizeof(pthread_t)); + read_threads = calloc(num, sizeof(pthread_t)); if (read_threads == NULL) { ERROR("plugin: start_read_threads: calloc failed."); return; @@ -816,7 +816,7 @@ static void start_write_threads(size_t num) /* {{{ */ if (write_threads != NULL) return; - write_threads = (pthread_t *)calloc(num, sizeof(pthread_t)); + write_threads = calloc(num, sizeof(pthread_t)); if (write_threads == NULL) { ERROR("plugin: start_write_threads: calloc failed."); return; -- 2.11.0