diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-02 13:06:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-02 13:06:25 -0400 |
commit | db86b9194dfc6759cd731f8eedc37b7534afbf0d (patch) | |
tree | a69ed46a2da12074ad81bd58e4db292189e7449f /src/or/control.c | |
parent | fd437f2a0259e60379fbfe9b8bf6ee1e8fb1eae6 (diff) | |
download | tor-db86b9194dfc6759cd731f8eedc37b7534afbf0d.tar.gz tor-db86b9194dfc6759cd731f8eedc37b7534afbf0d.zip |
Break connection_dir_client_reached_eof() into smaller functions
This was a >630-line function, which doesn't make anybody happy. It
was also mostly composed of a bunch of if-statements that handled
different directory responses differently depending on the original
purpose of the directory connection. The logical refactoring here
is to move the body of each switch statement into a separate handler
function, and to invoke those functions from a separate switch
statement.
This commit leaves whitespace mostly untouched, for ease of review.
I'll reindent in the next commit.
Diffstat (limited to 'src/or/control.c')
0 files changed, 0 insertions, 0 deletions