projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: add blank line below collectd.h
[collectd.git]
/
src
/
barometer.c
diff --git
a/src/barometer.c
b/src/barometer.c
index
d60f588
..
e1a45cd
100644
(file)
--- a/
src/barometer.c
+++ b/
src/barometer.c
@@
-20,6
+20,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "utils_cache.h"
#include "plugin.h"
#include "common.h"
#include "utils_cache.h"
#include "plugin.h"
@@
-343,9
+344,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
+1361,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
+1803,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)