X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fbarometer.c;h=53c55b844247b2e19d091fd270501fd5ec025e16;hb=11ca18db12e489c40aa0ac41672872cfae4b1f0b;hp=fba3450a2aed5db5331cb6e82484916b54a29999;hpb=7adc8768ee5f7276d1964da6d268effba557d3a5;p=collectd.git diff --git a/src/barometer.c b/src/barometer.c index fba3450a..53c55b84 100644 --- a/src/barometer.c +++ b/src/barometer.c @@ -30,6 +30,7 @@ #include #include #include +#include /* ------------ MPL115 defines ------------ */ /* I2C address of the MPL115 sensor */ @@ -1599,7 +1600,6 @@ static int MPL115_collectd_barometer_read (void) norm_pressure = abs_to_mean_sea_level_pressure(pressure); - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "barometer", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, "mpl115", sizeof (vl.plugin_instance)); @@ -1662,7 +1662,6 @@ static int MPL3115_collectd_barometer_read (void) norm_pressure = abs_to_mean_sea_level_pressure(pressure); - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "barometer", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, "mpl3115", sizeof (vl.plugin_instance)); @@ -1725,7 +1724,6 @@ static int BMP085_collectd_barometer_read (void) norm_pressure = abs_to_mean_sea_level_pressure(pressure); - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "barometer", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, "bmp085", sizeof (vl.plugin_instance));