]> jfr.im git - solanum.git/commitdiff
ssld: Move plain_check_cork() to a boolean
authorMatt Ullman <redacted>
Thu, 24 Mar 2016 17:52:16 +0000 (13:52 -0400)
committerMatt Ullman <redacted>
Thu, 24 Mar 2016 17:52:16 +0000 (13:52 -0400)
ssld/ssld.c

index 403a71a15c71ac822c9ab0b393ce1fe6d184321c..7a0dc20f5eb31f7cc2864876ce0c14e86e05a5e4 100644 (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;
 }