diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-16 22:15:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-16 22:15:14 +0000 |
commit | b837191fd0e897cbc5fc33874190bab8bbb83268 (patch) | |
tree | 96b7bf77047a1873c56931c4f1387cd3c36f79c8 /src/or/eventdns.c | |
parent | e043b86f47185e0d9df53dab12d42e46c8c35b83 (diff) | |
download | tor-b837191fd0e897cbc5fc33874190bab8bbb83268.tar.gz tor-b837191fd0e897cbc5fc33874190bab8bbb83268.zip |
r12768@catbus: nickm | 2007-05-16 17:25:33 -0400
Fix GCC warnings related to local parameters/variables getting shadowed.
svn:r10198
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 6d504bd576..fb267babc7 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -1679,8 +1679,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 e = last_error(port->socket); + if (! error_is_eagain(e)) return -1; if (port->pending_replies) { @@ -2514,7 +2514,7 @@ search_try_next(struct request *const req) { // this name without a postfix if (string_num_dots(req->search_origname) < req->search_state->ndots) { // yep, we need to try it raw - struct request *const newreq = request_new(req->request_type, req->search_origname, req->search_flags, req->user_callback, req->user_pointer); + newreq = request_new(req->request_type, req->search_origname, req->search_flags, req->user_callback, req->user_pointer); log(EVDNS_LOG_DEBUG, "Search: trying raw query %s", req->search_origname); if (newreq) { request_submit(newreq); |