summaryrefslogtreecommitdiff
path: root/plugins/hotkeys
diff options
context:
space:
mode:
authorGravatar Alexey A. Smirnov <alexey.smirnov@gmx.com>2010-05-04 15:31:28 +0600
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-04 18:49:27 +0200
commit9ca2a9c5ceaabb9f5db53ae85ab1179dbd6e4d2b (patch)
treecc09615dcd1db7f97eabd94f1f2c026982a24516 /plugins/hotkeys
parentf7c141f1237840f585b1814fd88f8f71c809ea7b (diff)
fix return values of some functions
Diffstat (limited to 'plugins/hotkeys')
-rw-r--r--plugins/hotkeys/hotkeys.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c
index 3a27b237..0fffdf0c 100644
--- a/plugins/hotkeys/hotkeys.c
+++ b/plugins/hotkeys/hotkeys.c
@@ -281,6 +281,8 @@ read_config (Display *disp)
XGrabKey (disp, commands[i].keycode, commands[i].modifier | flags, DefaultRootWindow (disp), False, GrabModeAsync, GrabModeAsync);
}
}
+
+ return 0;
}
DB_plugin_t *
@@ -300,6 +302,8 @@ x_err_handler (Display *d, XErrorEvent *evt) {
char buffer[1024];
XGetErrorText (d, evt->error_code, buffer, sizeof (buffer));
fprintf (stderr, "hotkeys: xlib error: %s\n", buffer);
+
+ return 0;
}
static void
@@ -379,6 +383,8 @@ hotkeys_start (void) {
read_config (disp);
XSync (disp, 0);
loop_tid = deadbeef->thread_start (hotkeys_event_loop, 0);
+
+ return 0;
}
static int
@@ -388,6 +394,8 @@ hotkeys_stop (void) {
deadbeef->thread_join (loop_tid);
cleanup ();
}
+
+ return 0;
}
const char *