From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:08:36 +0000 (+0100) Subject: barometer plugin: remove unneccesary cast X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dd8d0c5985194889ca944b025fbd82f83351126e;p=collectd.git barometer plugin: remove unneccesary cast --- diff --git a/src/barometer.c b/src/barometer.c index a54d998a..b6f2bc00 100644 --- a/src/barometer.c +++ b/src/barometer.c @@ -252,7 +252,7 @@ static averaging_t temperature_averaging; * @return Zero when successful */ static int averaging_create(averaging_t *avg, int size) { - avg->ring_buffer = calloc((size_t)size, sizeof(*avg->ring_buffer)); + avg->ring_buffer = calloc(size, sizeof(*avg->ring_buffer)); if (avg->ring_buffer == NULL) { ERROR("barometer: averaging_create - ring buffer allocation of size %d " "failed",