X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgps.c;h=f72cef4961bfa860f2481b0663ce822a36f592ad;hb=4d370741101aeb037ae52f3529a4a0869e0dc08a;hp=e43af4a4e55b2256af5846f81c3f0a8d9f157ef4;hpb=7c14b05db2cd7b17321f1e37bfb852c1a9a3832d;p=collectd.git diff --git a/src/gps.c b/src/gps.c index e43af4a4..f72cef49 100644 --- a/src/gps.c +++ b/src/gps.c @@ -30,7 +30,6 @@ #include "common.h" #include "plugin.h" #include "utils_time.h" -#include "configfile.h" #define CGPS_TRUE 1 #define CGPS_FALSE 0 @@ -239,7 +238,7 @@ static void cgps_submit (const char *type, gauge_t value, const char *type_insta /** * Read the data and submit by piece. */ -static int cgps_read () +static int cgps_read (void) { cgps_data_t data_copy; @@ -285,14 +284,14 @@ static int cgps_config (oconfig_item_t *ci) cgps_config_data.timeout > TIME_T_TO_CDTIME_T(5) || cgps_config_data.timeout < US_TO_CDTIME_T(500) - ) + ) { - WARNING ("gps plugin: timeout set to %.6f sec. setting to default (%.6f).", + WARNING ("gps plugin: timeout set to %.6f sec. setting to default (%.6f).", CDTIME_T_TO_DOUBLE(cgps_config_data.timeout), CDTIME_T_TO_DOUBLE(CGPS_DEFAULT_TIMEOUT) ); cgps_config_data.timeout = CGPS_DEFAULT_TIMEOUT; - } + } return (0); }