diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-20 16:37:39 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 08:10:10 -0400 |
commit | 69a41e8bc6e148c471ae8ee860e1a43548729db0 (patch) | |
tree | cd86685ba71902f0309f0192a5a4ed499ac32cbc /src/common/compress_zlib.c | |
parent | c2d1d949dec1db9fb413a02be422dfede3bb53aa (diff) | |
download | tor-69a41e8bc6e148c471ae8ee860e1a43548729db0.tar.gz tor-69a41e8bc6e148c471ae8ee860e1a43548729db0.zip |
Use switch-statement in tor_{compress,uncompress}.
Use a switch-statement in `tor_compress()` and `tor_uncompress()` for
the given `compress_method_t` parameter. This allows us to have the
compiler detect if we forgot add a handler in these functions for a
newly added enumeration value.
See: https://bugs.torproject.org/21662
Diffstat (limited to 'src/common/compress_zlib.c')
0 files changed, 0 insertions, 0 deletions