diff options
Diffstat (limited to 'cpp/termbox/termbox.c')
-rw-r--r-- | cpp/termbox/termbox.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/termbox/termbox.c b/cpp/termbox/termbox.c index c9a7ae5e..f32d8f07 100644 --- a/cpp/termbox/termbox.c +++ b/cpp/termbox/termbox.c @@ -5,6 +5,7 @@ #include <fcntl.h> #include <signal.h> #include <stdio.h> +int snprintf(char *str, size_t size, const char *format, ...); // until we enable gnu99 #include <stdbool.h> #include <sys/ioctl.h> #include <sys/time.h> @@ -580,7 +581,8 @@ static void sigwinch_handler(int xxx) { (void) xxx; const int zzz = 1; - write(winch_fds[1], &zzz, sizeof(int)); + int yyy = write(winch_fds[1], &zzz, sizeof(int)); + (void) yyy; } static void update_size(void) @@ -670,7 +672,8 @@ static int wait_fill_event(struct tb_event *event, struct timeval *timeout) if (FD_ISSET(winch_fds[0], &events)) { event->type = TB_EVENT_RESIZE; int zzz = 0; - read(winch_fds[0], &zzz, sizeof(int)); + int yyy = read(winch_fds[0], &zzz, sizeof(int)); + (void) yyy; buffer_size_change_request = 1; get_term_size(&event->w, &event->h); return TB_EVENT_RESIZE; |