diff options
author | teor <teor2345@gmail.com> | 2017-06-16 09:45:58 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-06-16 09:45:58 +1000 |
commit | 7605bd528e64898d8d62fd89f414185f465d9999 (patch) | |
tree | 4249e1a0e2890ea98a4f1f25275469617b9bc177 /src/common/compress_zstd.c | |
parent | 952c9073ad255442adcf4e85f7b2150c3bbe91de (diff) | |
download | tor-7605bd528e64898d8d62fd89f414185f465d9999.tar.gz tor-7605bd528e64898d8d62fd89f414185f465d9999.zip |
Move a comment to the right place in tor_zstd_compress_process
Part of #22502
Diffstat (limited to 'src/common/compress_zstd.c')
-rw-r--r-- | src/common/compress_zstd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c index 99d05c37bd..9143615d4d 100644 --- a/src/common/compress_zstd.c +++ b/src/common/compress_zstd.c @@ -312,6 +312,8 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state, return TOR_COMPRESS_ERROR; } + // ZSTD_flushStream returns 0 if the frame is done, or >0 if it + // is incomplete. if (retval > 0) return TOR_COMPRESS_BUFFER_FULL; } @@ -339,8 +341,6 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state, return TOR_COMPRESS_DONE; } else { - // ZSTD_flushStream returns 0 if the frame is done, or >0 if it - // is incomplete. return (retval == 0) ? TOR_COMPRESS_DONE : TOR_COMPRESS_OK; } |