From: Ruben Kerkhof Date: Fri, 14 Dec 2018 18:13:15 +0000 (+0100) Subject: ceph plugin: use recommended style for calloc X-Git-Tag: collectd-5.9.0~68^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9be7c0d4d072bf1a8afce79fa2691a6610c4aeb6;p=thirdparty%2Fcollectd.git ceph plugin: use recommended style for calloc --- diff --git a/src/ceph.c b/src/ceph.c index c7fc576ad..c112af06e 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; }