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