projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0076bf
)
ceph plugin: use recommended style for calloc
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 14 Dec 2018 18:13:15 +0000
(19:13 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 14 Dec 2018 18:13:15 +0000
(19:13 +0100)
src/ceph.c
patch
|
blob
|
history
diff --git
a/src/ceph.c
b/src/ceph.c
index
c7fc576
..
c112af0
100644
(file)
--- 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;
}