From: Ruben Kerkhof Date: Thu, 3 Mar 2016 21:35:43 +0000 (+0100) Subject: Fix a few more prototypes X-Git-Tag: collectd-5.5.2~6^2~28^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=addc746565334182a816790d3073d5da86aad16e;p=collectd.git Fix a few more prototypes Found with -Wstrict-prototypes and -Wold-style-definition --- 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",