summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f634a0a)
raw | patch | inline | side by side (parent: f634a0a)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Thu, 3 Mar 2016 21:35:43 +0000 (22:35 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Thu, 3 Mar 2016 21:35:43 +0000 (22:35 +0100) |
Found with -Wstrict-prototypes and -Wold-style-definition
src/plugin.c | patch | blob | history | |
src/processes.c | patch | blob | history | |
src/python.c | patch | blob | history | |
src/tokyotyrant.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 9c455417c82c35f0f0a87d320e12a79f9ccf8a8c..73ec77aba93fa0348e99f75d95f9c24117054972 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
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 0742a20b00230c5ca93f8414b832d73675984888..89e663a57e636315c47687764fdcea2acf64a3ef 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
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 d16f739c861a1891d5a90d7dfdf2338497ea45a0..110a8e024a4ea8bcdd25a76dd80892de3e40f6c3 100644 (file)
--- a/src/python.c
+++ b/src/python.c
}
#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 678a341c1ceeaf15f24a708d12567c1b8ed92f15..b618ae323a3e1daec1db5a150c5f81721fdc7bf5 100644 (file)
--- a/src/tokyotyrant.c
+++ b/src/tokyotyrant.c
return (0);
}
-static void printerr()
+static void printerr (void)
{
int ecode = tcrdbecode(rdb);
ERROR ("tokyotyrant plugin: error: %d, %s",