diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-07-31 11:39:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 12:28:43 -0400 |
commit | 200921dc313c7077c5d36aeda4b885e18c29fa70 (patch) | |
tree | 6888b68bdcf6872d2e75aa8d44fa88503b0707da /src/or/cpuworker.c | |
parent | 57e7b54b7b4102de0c5776a1268367c18090033b (diff) | |
download | tor-200921dc313c7077c5d36aeda4b885e18c29fa70.tar tor-200921dc313c7077c5d36aeda4b885e18c29fa70.tar.gz |
Refactor users of buf_datalen to bufferevent-friendly version.
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 6f943d78b..07a1c2fb0 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -141,7 +141,7 @@ connection_cpu_process_inbuf(connection_t *conn) tor_assert(conn); tor_assert(conn->type == CONN_TYPE_CPUWORKER); - if (!buf_datalen(conn->inbuf)) + if (!connection_get_inbuf_len(conn)) return 0; if (conn->state == CPUWORKER_STATE_BUSY_ONION) { |