X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbarometer.c;h=f14ac049dab29ada5279a01d9388d621f5962eb6;hb=592d8582e3370b7fb120ba9ed5957332936ab9f3;hp=0e8deaf82fca1685c8f368850b9eb0b2cea0759b;hpb=daebbbee0ac53d39a0486aeb8c41fd358f46ed82;p=collectd.git diff --git a/src/barometer.c b/src/barometer.c index 0e8deaf8..f14ac049 100644 --- a/src/barometer.c +++ b/src/barometer.c @@ -343,9 +343,9 @@ static temperature_list_t * temp_list = NULL; */ static int temp_list_add(temperature_list_t * list, const char * sensor) { - temperature_list_t * new_temp; + temperature_list_t *new_temp; - new_temp = (temperature_list_t *) malloc(sizeof(*new_temp)); + new_temp = malloc(sizeof (*new_temp)); if(new_temp == NULL) return -1;