From: Ruben Kerkhof Date: Tue, 9 Aug 2016 11:51:46 +0000 (+0200) Subject: gps plugin: fix compiler warning X-Git-Tag: collectd-5.6.0~70 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac59939dadf3a1679650ada33db1070f31e2df93;p=collectd.git gps plugin: fix compiler warning gps.c:242:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static int cgps_read () ^~~~~~~~~ gps.c: In function ‘cgps_read’: gps.c:242:12: warning: old-style function definition [-Wold-style-definition] --- diff --git a/src/gps.c b/src/gps.c index 04de5aa9..19f317cb 100644 --- a/src/gps.c +++ b/src/gps.c @@ -239,7 +239,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;