From 7e6928d7d5ba55a575778a56167986a1cb08683a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 3 Apr 2021 00:27:43 +0900 Subject: [PATCH] [qwaq] Work around a gcc non-conformance *sigh* --- ruamoko/qwaq/builtins/input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruamoko/qwaq/builtins/input.c b/ruamoko/qwaq/builtins/input.c index fe2580fd2..67d491cc8 100644 --- a/ruamoko/qwaq/builtins/input.c +++ b/ruamoko/qwaq/builtins/input.c @@ -445,16 +445,16 @@ void qwaq_input_init (qwaq_resources_t *res) // ncurses takes care of input mode for us, so need only tell xterm // what we need - (void) write(1, MOUSE_MOVES_ON, sizeof (MOUSE_MOVES_ON) - 1); - (void) write(1, SGR_ON, sizeof (SGR_ON) - 1); + (void) !write(1, MOUSE_MOVES_ON, sizeof (MOUSE_MOVES_ON) - 1); + (void) !write(1, SGR_ON, sizeof (SGR_ON) - 1); } void qwaq_input_shutdown (qwaq_resources_t *res) { // ncurses takes care of input mode for us, so need only tell xterm // what we need - (void) write(1, SGR_OFF, sizeof (SGR_OFF) - 1); - (void) write(1, MOUSE_MOVES_OFF, sizeof (MOUSE_MOVES_OFF) - 1); + (void) !write(1, SGR_OFF, sizeof (SGR_OFF) - 1); + (void) !write(1, MOUSE_MOVES_OFF, sizeof (MOUSE_MOVES_OFF) - 1); #ifdef HAVE_SIGACTION sigaction (SIGWINCH, &save_winch, 0);