terminal: remove unused return value

This commit is contained in:
wm4 committed 2017-06-27 18:08:56 +02:00
1 parent 5cd7b1c8a6
commit dd87ce6f4b
3 files changed
+3 -6

No files matched your search

+1 -3
View File
@@ -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;
}
+1 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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);