diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-10 16:00:48 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-10 16:00:48 -0500 |
commit | 6a829a340477a117d2e7cacc44688988d4b5be41 (patch) | |
tree | 83c51b5bcf70d674bdda54fd6770b7777911d0df /src/or/dnsserv.c | |
parent | 5ae391762c93fa4cdf47ceb24c31282daf695a65 (diff) | |
download | tor-6a829a340477a117d2e7cacc44688988d4b5be41.tar.gz tor-6a829a340477a117d2e7cacc44688988d4b5be41.zip |
Make eventdns server functions const void* to match libevent
partial fix for bug 2332
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index c491656f73..63ecbd2266 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -280,7 +280,7 @@ dnsserv_resolved(edge_connection_t *conn, conn->socks_request->command == SOCKS_COMMAND_RESOLVE) { evdns_server_request_add_a_reply(req, name, - 1, (char*)answer, ttl); + 1, answer, ttl); } else if (answer_type == RESOLVED_TYPE_HOSTNAME && conn->socks_request->command == SOCKS_COMMAND_RESOLVE_PTR) { char *ans = tor_strndup(answer, answer_len); |