diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-25 22:56:50 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-25 22:56:50 +0000 |
commit | 47f3a40900e24cf5d14e8fa218b876a2b39b25f0 (patch) | |
tree | a7445e907c56cfe6a443b34c670556f7e3a9f2ba /src/or/directory.c | |
parent | 2305c2c7be1d2101d2f666ee88054aa55ab3e348 (diff) | |
download | tor-47f3a40900e24cf5d14e8fa218b876a2b39b25f0.tar.gz tor-47f3a40900e24cf5d14e8fa218b876a2b39b25f0.zip |
r13904@catbus: nickm | 2007-07-25 18:04:46 -0400
Fix whitespaces and compilation in and around dirvote code.
svn:r10929
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 66f182adcf..a60ff13236 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -35,7 +35,8 @@ static void directory_send_command(dir_connection_t *conn, const char *payload, size_t payload_len); static int directory_handle_command(dir_connection_t *conn); static int body_is_plausible(const char *body, size_t body_len, int purpose); -static int purpose_needs_anonymity(uint8_t dir_purpose, uint8_t router_purpose); +static int purpose_needs_anonymity(uint8_t dir_purpose, + uint8_t router_purpose); static char *http_get_header(const char *headers, const char *which); static void http_set_address_origin(const char *headers, connection_t *conn); static void connection_dir_download_networkstatus_failed( @@ -2112,7 +2113,7 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers, if (authdir_mode_v3(options) && !strcmp(url,"/tor/post/vote")) { /* server descriptor post */ const char *msg = "OK"; - if (dirserv_add_vote(body, &msg)) { + if (dirvote_add_vote(body, &msg)) { write_http_status_line(conn, 200, "Vote stored"); } else { tor_assert(msg); |