summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-08-08 12:58:17 +0000
committerNick Mathewson <nickm@torproject.org>2008-08-08 12:58:17 +0000
commitf6879caa0447a5fd65ff07d210146393d27cb88e (patch)
tree9d7ed658d36a930b207ef577c2066c2bc08beb13 /src/or/connection_edge.c
parent39f88641c100b4a3f486275a4e6b577fd6333b7b (diff)
downloadtor-f6879caa0447a5fd65ff07d210146393d27cb88e.tar.gz
tor-f6879caa0447a5fd65ff07d210146393d27cb88e.zip
Try once again to make BSD compilation happy.
svn:r16474
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 9449e2116b..197fccc2ba 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1762,13 +1762,13 @@ connection_ap_get_original_destination(edge_connection_t *conn,
if (pnl.af == AF_INET) {
tor_addr_from_ipv4n(&addr, pnl.rdaddr.v4.s_addr);
} else if (pnl.af == AF_INET6) {
- tor_addr_from_ipv6_bytes(&addr, pnl.rdaddr.v6.s6_addr);
+ tor_addr_from_in6(&addr, &pnl.rdaddr.v6);
} else {
tor_fragile_assert();
return -1;
}
- tor_addr_to_string(req->address, &addr, sizeof(req->address), 0);
+ tor_addr_to_str(req->address, &addr, sizeof(req->address), 0);
req->port = ntohs(pnl.rdport);
return 0;