diff options
Diffstat (limited to 'src/keypress_thread.c')
| -rw-r--r-- | src/keypress_thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keypress_thread.c b/src/keypress_thread.c index a174968..1b102d4 100644 --- a/src/keypress_thread.c +++ b/src/keypress_thread.c @@ -15,12 +15,12 @@ void on_press(void) { // XXX signal light thread } -int keypress_thread(pid_t _light_pid) { +void keypress_thread(pid_t _light_pid) { light_pid = _light_pid; FILE* fp = fopen(KEYBOARD_FILE, "r"); fseek(fp, 0, SEEK_END); - + void* discard = malloc(KEYPRESS_SIZE); while (1) { @@ -34,5 +34,5 @@ int keypress_thread(pid_t _light_pid) { // XXX handle SIGINT or whatever - return 0; + __builtin_unreachable(); } |
