summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-10 16:00:48 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-10 16:00:48 -0500
commit6a829a340477a117d2e7cacc44688988d4b5be41 (patch)
tree83c51b5bcf70d674bdda54fd6770b7777911d0df /src/or/eventdns.c
parent5ae391762c93fa4cdf47ceb24c31282daf695a65 (diff)
downloadtor-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/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 75a25bd088..04913bf6f7 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1668,7 +1668,7 @@ evdns_server_request_add_reply(struct evdns_server_request *_req, int section, c
/* exported function */
int
-evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl)
+evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, const void *addrs, int ttl)
{
return evdns_server_request_add_reply(
req, EVDNS_ANSWER_SECTION, name, TYPE_A, CLASS_INET,
@@ -1677,7 +1677,7 @@ evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *n
/* exported function */
int
-evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl)
+evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, const void *addrs, int ttl)
{
return evdns_server_request_add_reply(
req, EVDNS_ANSWER_SECTION, name, TYPE_AAAA, CLASS_INET,