ssld: Move plain_check_cork() to a boolean

This commit is contained in:
Matt Ullman 2016-03-24 13:52:16 -04:00
parent 2a4b3ea648
commit 25a899651d

View file

@ -459,7 +459,7 @@ common_zlib_inflate(conn_t * conn, void *buf, size_t len)
}
#endif
static int
static bool
plain_check_cork(conn_t * conn)
{
if(rb_rawbuf_length(conn->modbuf_out) >= 4096)
@ -470,9 +470,9 @@ plain_check_cork(conn_t * conn)
rb_setselect(conn->plain_fd, RB_SELECT_READ, NULL, NULL);
/* try to write */
conn_mod_write_sendq(conn->mod_fd, conn);
return 1;
return true;
}
return 0;
return false;
}