aboutsummaryrefslogtreecommitdiff
path: root/src/or/consdiff.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-02 13:06:25 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-02 13:06:25 -0400
commitdb86b9194dfc6759cd731f8eedc37b7534afbf0d (patch)
treea69ed46a2da12074ad81bd58e4db292189e7449f /src/or/consdiff.h
parentfd437f2a0259e60379fbfe9b8bf6ee1e8fb1eae6 (diff)
downloadtor-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/consdiff.h')
0 files changed, 0 insertions, 0 deletions