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/eventdns.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/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 321b7d753f..7fe376baff 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -1831,8 +1831,8 @@ evdns_server_request_respond(struct evdns_server_request *_req, int err) r = sendto(port->socket, req->response, req->response_len, 0, (struct sockaddr*) &req->addr, req->addrlen); if (r<0) { - int err = last_error(port->socket); - if (! error_is_eagain(err)) + int error = last_error(port->socket); + if (! error_is_eagain(error)) return -1; if (port->pending_replies) { |