summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
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/buffers.c
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/buffers.c')
-rw-r--r--src/or/buffers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 3490ce48a8..4f22935d26 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -2092,9 +2092,9 @@ fetch_from_buf_line(buf_t *buf, char *data_out, size_t *data_len)
* <b>done</b> is true, flush the data in the state and finish the
* compression/uncompression. Return -1 on failure, 0 on success. */
int
-write_to_buf_zlib(buf_t *buf, tor_compress_state_t *state,
- const char *data, size_t data_len,
- int done)
+write_to_buf_compress(buf_t *buf, tor_compress_state_t *state,
+ const char *data, size_t data_len,
+ int done)
{
char *next;
size_t old_avail, avail;