diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-18 03:39:43 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 08:06:01 -0400 |
commit | c171af048731cc00d77e17a1ff0be5c641024f8a (patch) | |
tree | e4e5fd4c89c8002e8ad3e1744516e43be154bdf5 /src/or/include.am | |
parent | 300ac496853448eb3eeb3529d3aedaa8cc212ec3 (diff) | |
download | tor-c171af048731cc00d77e17a1ff0be5c641024f8a.tar.gz tor-c171af048731cc00d77e17a1ff0be5c641024f8a.zip |
Use a switch-statement when checking for compression method.
This patch changes the way `tor_compress_new()`,
`tor_compress_process()`, and `tor_compress_free()` handles different
compression methods. This should give us compiler warnings in case an
additional compression method is added, but the developer forgets to add
handlers in the three aforementioned functions.
See https://bugs.torproject.org/21663
Diffstat (limited to 'src/or/include.am')
0 files changed, 0 insertions, 0 deletions