summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55d1d95)
raw | patch | inline | side by side (parent: 55d1d95)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 10 Jun 2016 08:46:28 +0000 (10:46 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 10 Jun 2016 08:46:28 +0000 (10:46 +0200) |
chrony.c:392:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
chrony_set_timeout()
^
chrony.c: In function ‘chrony_set_timeout’:
chrony.c:392:1: warning: old-style function definition
[-Wold-style-definition]
chrony.c: At top level:
[-Wstrict-prototypes]
chrony_set_timeout()
^
chrony.c: In function ‘chrony_set_timeout’:
chrony.c:392:1: warning: old-style function definition
[-Wold-style-definition]
chrony.c: At top level:
src/chrony.c | patch | blob | history |
diff --git a/src/chrony.c b/src/chrony.c
index 2bfba2f60b2f58ba67e81ae1b39311c8f64f97dd..23ad992c84bcb271ba29f04c3730836256495831 100644 (file)
--- a/src/chrony.c
+++ b/src/chrony.c
static int
-chrony_set_timeout()
+chrony_set_timeout(void)
{
/* Set the socket's timeout to g_chrony_timeout; a value of 0 signals infinite timeout */
/* Returns 0 on success, !0 on error (check errno) */
static int
-chrony_connect()
+chrony_connect(void)
{
/* Connects to the chrony daemon */
/* Returns 0 on success, !0 on error (check errno) */
@@ -717,7 +717,7 @@ chrony_push_data_valid(const char *p_type, const char *p_type_inst, const int p_
static int
-chrony_init_seq()
+chrony_init_seq(void)
{
/* Initialize the sequence number generator from /dev/urandom */
/* Fallbacks: /dev/random and time(NULL) */
static int
-chrony_request_daemon_stats()
+chrony_request_daemon_stats(void)
{
/* Perform Tracking request */
int rc;
static int
-chrony_read()
+chrony_read(void)
{
/* collectd read callback: Perform data acquisition */
int rc;
static int
-chrony_shutdown()
+chrony_shutdown(void)
{
/* Collectd shutdown callback: Free mem */
if (g_chrony_is_connected != 0)