X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbarometer.c;h=f14ac049dab29ada5279a01d9388d621f5962eb6;hb=edd9af8a874ebc9f2a7f02846807229a648917db;hp=d60f5881a7f94e00dd259f89cffcdf994b12eb07;hpb=4bca6c6b7e03ab4aa0d6a8a59dda3e44608f63f1;p=collectd.git diff --git a/src/barometer.c b/src/barometer.c index d60f5881..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; @@ -1360,7 +1360,7 @@ static int BMP085_read(double * pressure, double * temperature) * * @return detected sensor type */ -enum Sensor_type Detect_sensor_type(void) +static enum Sensor_type detect_sensor_type(void) { if(BMP085_detect()) return Sensor_BMP085; @@ -1802,7 +1802,7 @@ static int collectd_barometer_init (void) } /* detect sensor type - this will also set slave address */ - sensor_type = Detect_sensor_type(); + sensor_type = detect_sensor_type(); /* init correct sensor type */ switch(sensor_type)