diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-17 14:29:10 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-04-17 14:29:10 +0200 |
commit | 44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5 (patch) | |
tree | 2dd93776ce5e16f2f8df7b6e7bda8cf96e891b57 /src/or/dirserv.c | |
parent | e8b025dfc30ef0008cb44feb56ab3c740d2bae9b (diff) | |
download | tor-44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5.tar.gz tor-44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5.zip |
Rename `tor_gzip_{compress,uncompress}` to `tor_{compress,uncompress}`.
To allow us to use the API name `tor_compress` and `tor_uncompress` as
the main entry-point for all compression/uncompression and not just gzip
and zlib.
See https://bugs.torproject.org/21663
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 70b0b22f25..87afd69aba 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1176,8 +1176,8 @@ new_cached_dir(char *s, time_t published) d->dir = s; d->dir_len = strlen(s); d->published = published; - if (tor_gzip_compress(&(d->dir_z), &(d->dir_z_len), d->dir, d->dir_len, - ZLIB_METHOD)) { + if (tor_compress(&(d->dir_z), &(d->dir_z_len), d->dir, d->dir_len, + ZLIB_METHOD)) { log_warn(LD_BUG, "Error compressing directory"); } return d; |