From dd87ce6f4b201a9e6d258f6b101abb2f47bcb40f Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 27 Jun 2017 17:38:49 +0200 Subject: terminal: remove unused return value --- osdep/terminal-unix.c | 4 +--- osdep/terminal-win.c | 3 +-- osdep/terminal.h | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'osdep') diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index 9d30acfdd1..ffd6ee486c 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -474,7 +474,7 @@ void terminal_get_size(int *w, int *h) *h = ws.ws_row; } -int terminal_init(void) +void terminal_init(void) { assert(!getch2_enabled); getch2_enabled = 1; @@ -486,6 +486,4 @@ int terminal_init(void) setsigaction(SIGTTOU, SIG_IGN, 0, true); getch2_poll(); - - return 0; } diff --git a/osdep/terminal-win.c b/osdep/terminal-win.c index 5ec3f8b0d2..3b3a3ea935 100644 --- a/osdep/terminal-win.c +++ b/osdep/terminal-win.c @@ -285,7 +285,7 @@ bool terminal_try_attach(void) return true; } -int terminal_init(void) +void terminal_init(void) { CONSOLE_SCREEN_BUFFER_INFO cinfo; DWORD cmode = 0; @@ -295,5 +295,4 @@ int terminal_init(void) SetConsoleMode(hSTDERR, cmode); GetConsoleScreenBufferInfo(hSTDOUT, &cinfo); stdoutAttrs = cinfo.wAttributes; - return 0; } diff --git a/osdep/terminal.h b/osdep/terminal.h index b584508895..ccf6a02c7c 100644 --- a/osdep/terminal.h +++ b/osdep/terminal.h @@ -26,7 +26,7 @@ struct input_ctx; /* Global initialization for terminal output. */ -int terminal_init(void); +void terminal_init(void); /* Setup ictx to read keys from the terminal */ void terminal_setup_getch(struct input_ctx *ictx); -- cgit v1.2.3