summaryrefslogtreecommitdiff
path: root/src/or/connection.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-18 01:23:39 +0200
committerAlexander Færøy <ahf@torproject.org>2017-04-18 01:23:39 +0200
commitb8c9f229d747d4edc739198113dfb7e3818e23bc (patch)
tree80a8e8e05118d18b989548fd182a67ae8653c6fa /src/or/connection.h
parent40ed68290e69d32d95bc0d0c259d8c76ae3e80ef (diff)
downloadtor-b8c9f229d747d4edc739198113dfb7e3818e23bc.tar.gz
tor-b8c9f229d747d4edc739198113dfb7e3818e23bc.zip
Rename `write_to_buf_zlib()` to `write_to_buf_compress()`.
See https://bugs.torproject.org/21663
Diffstat (limited to 'src/or/connection.h')
-rw-r--r--src/or/connection.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/connection.h b/src/or/connection.h
index df6fc64709..36e45aef38 100644
--- a/src/or/connection.h
+++ b/src/or/connection.h
@@ -141,17 +141,17 @@ MOCK_DECL(void, connection_write_to_buf_impl_,
/* DOCDOC connection_write_to_buf */
static void connection_write_to_buf(const char *string, size_t len,
connection_t *conn);
-/* DOCDOC connection_write_to_buf_zlib */
-static void connection_write_to_buf_zlib(const char *string, size_t len,
- dir_connection_t *conn, int done);
+/* DOCDOC connection_write_to_buf_compress */
+static void connection_write_to_buf_compress(const char *string, size_t len,
+ dir_connection_t *conn, int done);
static inline void
connection_write_to_buf(const char *string, size_t len, connection_t *conn)
{
connection_write_to_buf_impl_(string, len, conn, 0);
}
static inline void
-connection_write_to_buf_zlib(const char *string, size_t len,
- dir_connection_t *conn, int done)
+connection_write_to_buf_compress(const char *string, size_t len,
+ dir_connection_t *conn, int done)
{
connection_write_to_buf_impl_(string, len, TO_CONN(conn), done ? -1 : 1);
}