From addc746565334182a816790d3073d5da86aad16e Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 3 Mar 2016 22:35:43 +0100 Subject: [PATCH] Fix a few more prototypes Found with -Wstrict-prototypes and -Wold-style-definition --- src/plugin.c | 2 +- src/processes.c | 2 +- src/python.c | 2 +- src/tokyotyrant.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index 9c455417..73ec77ab 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -870,7 +870,7 @@ static int plugin_mark_loaded (char const *name) return (status); } -static void plugin_free_loaded () +static void plugin_free_loaded (void) { void *key; void *value; diff --git a/src/processes.c b/src/processes.c index 0742a20b..89e663a5 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1165,7 +1165,7 @@ static char *ps_get_cmdline (long pid, char *name, char *buf, size_t buf_len) return buf; } /* char *ps_get_cmdline (...) */ -static int read_fork_rate () +static int read_fork_rate (void) { FILE *proc_stat; char buffer[1024]; diff --git a/src/python.c b/src/python.c index d16f739c..110a8e02 100644 --- a/src/python.c +++ b/src/python.c @@ -1017,7 +1017,7 @@ PyMODINIT_FUNC PyInit_collectd(void) { } #endif -static int cpy_init_python() { +static int cpy_init_python(void) { char *argv = ""; PyObject *sys; PyObject *module; diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c index 678a341c..b618ae32 100644 --- a/src/tokyotyrant.c +++ b/src/tokyotyrant.c @@ -79,7 +79,7 @@ static int tt_config (const char *key, const char *value) return (0); } -static void printerr() +static void printerr (void) { int ecode = tcrdbecode(rdb); ERROR ("tokyotyrant plugin: error: %d, %s", -- 2.11.0