From f563bbd2f988cd1f6ca292f89a47a86f98fe0e8d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 4 Oct 2003 02:38:18 +0000 Subject: refactor so connection_write_to_buf() never fails svn:r537 --- src/or/connection_or.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/connection_or.c') diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 579cea4997..0a1e41406d 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -248,13 +248,13 @@ static int connection_tls_finish_handshake(connection_t *conn) { /* ********************************** */ -int connection_write_cell_to_buf(const cell_t *cellp, connection_t *conn) { +void connection_write_cell_to_buf(const cell_t *cellp, connection_t *conn) { char networkcell[CELL_NETWORK_SIZE]; char *n = networkcell; cell_pack(n, cellp); - return connection_write_to_buf(n, CELL_NETWORK_SIZE, conn); + connection_write_to_buf(n, CELL_NETWORK_SIZE, conn); } /* if there's a whole cell there, pull it off and process it. */ -- cgit v1.2.3-54-g00ecf