projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7491350
)
gps plugin: fix compiler warning
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 9 Aug 2016 11:51:46 +0000
(13:51 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 9 Aug 2016 11:52:25 +0000
(13:52 +0200)
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]
src/gps.c
patch
|
blob
|
history
diff --git
a/src/gps.c
b/src/gps.c
index
04de5aa
..
19f317c
100644
(file)
--- 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;