summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-26 00:15:58 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-26 00:15:58 +0000
commitb0be93c8b0f933ca246bfae8d384bfd99efac33d (patch)
treec87bd162ade46bdfaac07f20dcbaf9a12e1fcc70 /src/or/eventdns.c
parent8508347b9352735d5ded86826c6b989cbeac9cf7 (diff)
downloadtor-b0be93c8b0f933ca246bfae8d384bfd99efac33d.tar.gz
tor-b0be93c8b0f933ca246bfae8d384bfd99efac33d.zip
r12988@catbus: nickm | 2007-05-25 20:15:56 -0400
socklen_t is a silly type anyway. Just use int as the argument for evdns_server_request_get_requesting_addr. svn:r10347
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 0ac47fba61..582dc8b071 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1812,10 +1812,10 @@ evdns_server_request_drop(struct evdns_server_request *_req)
// exported function
int
-evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, struct sockaddr *sa, socklen_t addr_len)
+evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, struct sockaddr *sa, int addr_len)
{
struct server_request *req = TO_SERVER_REQUEST(_req);
- if (addr_len < req->addrlen)
+ if (addr_len < (int)req->addrlen)
return -1;
memcpy(sa, &(req->addr), req->addrlen);
return req->addrlen;