diff options
author | orbea <orbea@riseup.net> | 2022-10-16 09:04:55 -0700 |
---|---|---|
committer | Daniel Friesel <derf@chaosdorf.de> | 2023-01-22 08:57:01 +0100 |
commit | afca52d96eb43e6ceec4e6976b1f90c367df27c9 (patch) | |
tree | 64ee5dd8c731b4c031ce29a1b638a2767e509718 /src/keyevents.c | |
parent | d65f3ba146fa7a6ccad2f3c1233becfda1c22b69 (diff) |
src: Fix build with clang 16
These are no longer supported in upcoming clang versions.
warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
Diffstat (limited to 'src/keyevents.c')
-rw-r--r-- | src/keyevents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 4d6759a..ecb4c9d 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -35,7 +35,7 @@ struct __fehkey keys[EVENT_LIST_END]; struct termios old_term_settings; unsigned char control_via_stdin = 0; -void setup_stdin() { +void setup_stdin(void) { struct termios ctrl; control_via_stdin = 1; @@ -55,7 +55,7 @@ void setup_stdin() { eprintf("tcsetattr failed"); } -void restore_stdin() { +void restore_stdin(void) { if (tcsetattr(STDIN_FILENO, TCSANOW, &old_term_settings) == -1) eprintf("tcsetattr failed"); } @@ -314,7 +314,7 @@ void feh_event_invoke_action(winwidget winwid, unsigned char action) return; } -void feh_event_handle_stdin() +void feh_event_handle_stdin(void) { char stdin_buf[2]; static char is_esc = 0; |