From: Ruben Kerkhof Date: Tue, 1 Mar 2016 10:56:40 +0000 (+0100) Subject: barometer: mark Detect_sensor_type as static X-Git-Tag: collectd-5.5.2~51 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=aa07aca156b92b163d5da5d540f80458a309633e;p=collectd.git barometer: mark Detect_sensor_type as static Make function start with lowercase 'd' while we're at it. Commit straight to 5.5. --- diff --git a/src/barometer.c b/src/barometer.c index 84ffdfcb..aaedd70a 100644 --- a/src/barometer.c +++ b/src/barometer.c @@ -1363,7 +1363,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; @@ -1805,7 +1805,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)