X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbarometer.c;h=f14ac049dab29ada5279a01d9388d621f5962eb6;hb=72a76347831a848e6722d9147297a1e03c4c01d8;hp=0e8deaf82fca1685c8f368850b9eb0b2cea0759b;hpb=4ea7aebc3f05d082f64a62c679f414cf7cb0e631;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;