projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl_json plugin: fix indentation
[collectd.git]
/
src
/
barometer.c
diff --git
a/src/barometer.c
b/src/barometer.c
index
d60f588
..
f14ac04
100644
(file)
--- 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)
{
*/
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;
if(new_temp == NULL)
return -1;
@@
-1360,7
+1360,7
@@
static int BMP085_read(double * pressure, double * temperature)
*
* @return detected sensor type
*/
*
* @return detected sensor type
*/
-
enum Sensor_type D
etect_sensor_type(void)
+
static enum Sensor_type d
etect_sensor_type(void)
{
if(BMP085_detect())
return Sensor_BMP085;
{
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 */
}
/* detect sensor type - this will also set slave address */
- sensor_type =
D
etect_sensor_type();
+ sensor_type =
d
etect_sensor_type();
/* init correct sensor type */
switch(sensor_type)
/* init correct sensor type */
switch(sensor_type)