}
static void bytebuffer_flush(struct bytebuffer *b, int fd) {
- write(fd, b->buf, b->len);
+ if (write(fd, b->buf, b->len) < 0) { /* oh well */ }
bytebuffer_clear(b);
}
{
(void) xxx;
const int zzz = 1;
- write(winch_fds[1], &zzz, sizeof(int));
+ if (write(winch_fds[1], &zzz, sizeof(int)) < 0) { /* oh well */ }
}
static void update_size(void)
if (FD_ISSET(winch_fds[0], &events)) {
event->type = TB_EVENT_RESIZE;
int zzz = 0;
- read(winch_fds[0], &zzz, sizeof(int));
+ if (read(winch_fds[0], &zzz, sizeof(int)) < 0) { /* oh well */ }
buffer_size_change_request = 1;
get_term_size(&event->w, &event->h);
return TB_EVENT_RESIZE;