From: Ruben Kerkhof Date: Fri, 14 Dec 2018 18:13:15 +0000 (+0100) Subject: ceph plugin: use recommended style for calloc X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9be7c0d4d072bf1a8afce79fa2691a6610c4aeb6;p=collectd.git ceph plugin: use recommended style for calloc --- diff --git a/src/ceph.c b/src/ceph.c index c7fc576a..c112af06 100644 --- a/src/ceph.c +++ b/src/ceph.c @@ -1032,7 +1032,7 @@ static void cconn_close(struct cconn *io) { static int cconn_process_data(struct cconn *io, yajl_struct *yajl, yajl_handle hand) { int ret; - struct values_tmp *vtmp = calloc(1, sizeof(struct values_tmp) * 1); + struct values_tmp *vtmp = calloc(1, sizeof(*vtmp)); if (!vtmp) { return -ENOMEM; }