diff options
author | Magnus Kessler <Magnus.Kessler@gmx.net> | 2008-10-09 20:31:54 +0200 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2008-10-09 20:39:10 +0200 |
commit | 5e8fb7f856b96adf0c8e02f6b8466ebabe8da953 (patch) | |
tree | b063c9178cf9cb8c78d52cc8c3da10abf4db4fe3 /tools | |
parent | 0da6ca4fb990a3cbd7558d4987ac946a77363f08 (diff) |
[sparse] Fix warnings about non-ANSI function declarations
Signed-off-by: Magnus Kessler <Magnus.Kessler@gmx.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Christoph Brill <egore911@egore911.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/synclient.c | 4 | ||||
-rw-r--r-- | tools/syndaemon.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/synclient.c b/tools/synclient.c index 7ec8fa9..2677d63 100644 --- a/tools/synclient.c +++ b/tools/synclient.c @@ -240,7 +240,7 @@ is_equal(SynapticsSHM *s1, SynapticsSHM *s2) } static double -get_time() +get_time(void) { struct timeval tv; gettimeofday(&tv, NULL); @@ -285,7 +285,7 @@ monitor(SynapticsSHM *synshm, int delay) } static void -usage() +usage(void) { fprintf(stderr, "Usage: synclient [-m interval] [-h] [-l] [-V] [-?] [var1=value1 [var2=value2] ...]\n"); fprintf(stderr, " -m monitor changes to the touchpad state.\n" diff --git a/tools/syndaemon.c b/tools/syndaemon.c index 2662bb5..7aa8238 100644 --- a/tools/syndaemon.c +++ b/tools/syndaemon.c @@ -52,7 +52,7 @@ static const char *pid_file; static unsigned char keyboard_mask[KEYMAP_SIZE]; static void -usage() +usage(void) { fprintf(stderr, "Usage: syndaemon [-i idle-time] [-m poll-delay] [-d] [-t] [-k]\n"); fprintf(stderr, " -i How many seconds to wait after the last key press before\n"); @@ -68,7 +68,7 @@ usage() } static int -enable_touchpad() +enable_touchpad(void) { int ret = 0; if (pad_disabled) { @@ -89,7 +89,7 @@ signal_handler(int signum) } static void -install_signal_handler() +install_signal_handler(void) { static int signals[] = { SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, @@ -156,7 +156,7 @@ keyboard_activity(Display *display) * Return non-zero if any physical touchpad button is currently pressed. */ static int -touchpad_buttons_active() +touchpad_buttons_active(void) { int i; @@ -171,7 +171,7 @@ touchpad_buttons_active() } static double -get_time() +get_time(void) { struct timeval tv; gettimeofday(&tv, NULL); |