projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a460856
)
daemon/plugin.c: fix two more stylistic issues
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:22:30 +0000
(18:22 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000
(19:40 +0100)
src/daemon/plugin.c
patch
|
blob
|
history
diff --git
a/src/daemon/plugin.c
b/src/daemon/plugin.c
index
13d4891
..
de04665
100644
(file)
--- a/
src/daemon/plugin.c
+++ b/
src/daemon/plugin.c
@@
-627,7
+627,7
@@
static void start_read_threads(size_t num) /* {{{ */
if (read_threads != NULL)
return;
- read_threads = calloc(num, sizeof(
pthread_t
));
+ read_threads = calloc(num, sizeof(
*read_threads
));
if (read_threads == NULL) {
ERROR("plugin: start_read_threads: calloc failed.");
return;
@@
-816,7
+816,7
@@
static void start_write_threads(size_t num) /* {{{ */
if (write_threads != NULL)
return;
- write_threads = calloc(num, sizeof(
pthread_t
));
+ write_threads = calloc(num, sizeof(
*write_threads
));
if (write_threads == NULL) {
ERROR("plugin: start_write_threads: calloc failed.");
return;