diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-25 03:36:30 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 08:11:32 -0400 |
commit | 2210b330e757d234346191e5d05af761fe8561e6 (patch) | |
tree | 9582f272238f17475d907b07ff5cf985b4b7457b /src/common/compress_lzma.h | |
parent | cf912259ba491e51f6f211e186ff67605ff269c8 (diff) | |
download | tor-2210b330e757d234346191e5d05af761fe8561e6.tar.gz tor-2210b330e757d234346191e5d05af761fe8561e6.zip |
Fix newlines in compression headers.
See: https://bugs.torproject.org/21662
Diffstat (limited to 'src/common/compress_lzma.h')
-rw-r--r-- | src/common/compress_lzma.h | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/common/compress_lzma.h b/src/common/compress_lzma.h index 801e22ddd4..71de56a1c6 100644 --- a/src/common/compress_lzma.h +++ b/src/common/compress_lzma.h @@ -11,26 +11,21 @@ #ifndef TOR_COMPRESS_LZMA_H #define TOR_COMPRESS_LZMA_H -int -tor_lzma_method_supported(void); +int tor_lzma_method_supported(void); -const char * -tor_lzma_get_version_str(void); +const char *tor_lzma_get_version_str(void); -const char * -tor_lzma_get_header_version_str(void); +const char *tor_lzma_get_header_version_str(void); -int -tor_lzma_compress(char **out, size_t *out_len, - const char *in, size_t in_len, - compress_method_t method); +int tor_lzma_compress(char **out, size_t *out_len, + const char *in, size_t in_len, + compress_method_t method); -int -tor_lzma_uncompress(char **out, size_t *out_len, - const char *in, size_t in_len, - compress_method_t method, - int complete_only, - int protocol_warn_level); +int tor_lzma_uncompress(char **out, size_t *out_len, + const char *in, size_t in_len, + compress_method_t method, + int complete_only, + int protocol_warn_level); /** Internal state for an incremental LZMA compression/decompression. */ typedef struct tor_lzma_compress_state_t tor_lzma_compress_state_t; @@ -46,14 +41,11 @@ tor_lzma_compress_process(tor_lzma_compress_state_t *state, const char **in, size_t *in_len, int finish); -void -tor_lzma_compress_free(tor_lzma_compress_state_t *state); +void tor_lzma_compress_free(tor_lzma_compress_state_t *state); -size_t -tor_lzma_compress_state_size(const tor_lzma_compress_state_t *state); +size_t tor_lzma_compress_state_size(const tor_lzma_compress_state_t *state); -size_t -tor_lzma_get_total_allocation(void); +size_t tor_lzma_get_total_allocation(void); #endif // TOR_COMPRESS_LZMA_H. |