ceph plugin: use recommended style for calloc
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 14 Dec 2018 18:13:15 +0000 (19:13 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 14 Dec 2018 18:13:15 +0000 (19:13 +0100)
src/ceph.c

index c7fc576..c112af0 100644 (file)
@@ -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;
   }