projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6deef
)
barometer plugin: remove unneccesary cast
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:08:36 +0000
(18:08 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:08:36 +0000
(18:08 +0100)
src/barometer.c
patch
|
blob
|
history
diff --git
a/src/barometer.c
b/src/barometer.c
index
a54d998
..
b6f2bc0
100644
(file)
--- a/
src/barometer.c
+++ b/
src/barometer.c
@@
-252,7
+252,7
@@
static averaging_t temperature_averaging;
* @return Zero when successful
*/
static int averaging_create(averaging_t *avg, int size) {
- avg->ring_buffer = calloc(
(size_t)
size, sizeof(*avg->ring_buffer));
+ avg->ring_buffer = calloc(size, sizeof(*avg->ring_buffer));
if (avg->ring_buffer == NULL) {
ERROR("barometer: averaging_create - ring buffer allocation of size %d "
"failed",