aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-07-23 05:39:37 +0000
committerNick Mathewson <nickm@torproject.org>2006-07-23 05:39:37 +0000
commit1c0f02f657225a3ae04f245057970998a9e2ce81 (patch)
treea276e6a93497c059337444eaaa0180e1a70bd1fa /src/or
parentf4e506f42374530c84e740f535d7d962f40f6542 (diff)
downloadtor-1c0f02f657225a3ae04f245057970998a9e2ce81.tar
tor-1c0f02f657225a3ae04f245057970998a9e2ce81.tar.gz
Add (void) lines for unused parameters in eventdns.c
svn:r6812
Diffstat (limited to 'src/or')
-rw-r--r--src/or/eventdns.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index cec7a6a8a..41583bca5 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -462,6 +462,8 @@ request_find_from_trans_id(u16 trans_id) {
static void
nameserver_prod_callback(int fd, short events, void *arg) {
struct nameserver *const ns = (struct nameserver *) arg;
+ (void)fd;
+ (void)events;
nameserver_send_probe(ns);
}
@@ -910,6 +912,7 @@ nameserver_write_waiting(struct nameserver *ns, char waiting) {
static void
nameserver_ready_callback(int fd, short events, void *arg) {
struct nameserver *ns = (struct nameserver *) arg;
+ (void)fd;
if (events & EV_WRITE) {
ns->choaked = 0;
@@ -1020,6 +1023,8 @@ eventdns_request_data_build(const char *const name, const int name_len, const u1
static void
eventdns_request_timeout_callback(int fd, short events, void *arg) {
struct request *const req = (struct request *) arg;
+ (void) fd;
+ (void) events;
log("Request %lx timed out", (unsigned long) arg);
@@ -1106,6 +1111,11 @@ eventdns_request_transmit(struct request *req) {
static void
nameserver_probe_callback(int result, char type, int count, int ttl, void *addresses, void *arg) {
struct nameserver *const ns = (struct nameserver *) arg;
+ (void) type;
+ (void) count;
+ (void) ttl;
+ (void) addresses;
+
if (result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST) {
// this is a good reply
nameserver_up(ns);
@@ -1285,6 +1295,8 @@ request_new(const char *name, int flags, eventdns_callback_type callback, void *
// the request data is alloced in a single block with the header
struct request *const req = (struct request *) malloc(sizeof(struct request) + request_max_len);
int rlen;
+ (void) flags;
+
if (!req) return NULL;
memset(req, 0, sizeof(struct request));