diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-01 11:33:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-01 11:33:07 -0400 |
commit | 1d18c2deb6d048a8d6f726e6c1b8ccbab4374e32 (patch) | |
tree | 544aeb563be67269a387a668b0c7ec22e0d4dcb1 /src/or/directory.c | |
parent | a0ae80788cc12284cd63ac678318f95e1238b257 (diff) | |
download | tor-1d18c2deb6d048a8d6f726e6c1b8ccbab4374e32.tar.gz tor-1d18c2deb6d048a8d6f726e6c1b8ccbab4374e32.zip |
Don't shadow parameters with local variables
This is a little error-prone when the local has a different type
from the parameter, and is very error-prone with both have the same
type. Let's not do this.
Fixes CID #437,438,439,440,441.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 7ded115274..9e1373d46f 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2592,7 +2592,7 @@ client_likes_consensus(networkstatus_t *v, const char *want_url) * Always return 0. */ static int directory_handle_command_get(dir_connection_t *conn, const char *headers, - const char *body, size_t body_len) + const char *req_body, size_t req_body_len) { size_t dlen; char *url, *url_mem, *header; @@ -2602,8 +2602,8 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers, size_t url_len; /* We ignore the body of a GET request. */ - (void)body; - (void)body_len; + (void)req_body; + (void)req_body_len; log_debug(LD_DIRSERV,"Received GET command."); |