From aa07aca156b92b163d5da5d540f80458a309633e Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 1 Mar 2016 11:56:40 +0100 Subject: [PATCH] barometer: mark Detect_sensor_type as static Make function start with lowercase 'd' while we're at it. Commit straight to 5.5. --- src/barometer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.11.0