[or-cvs] Add (void) lines for unused parameters in eventdns.c
Nick Mathewson
nickm at seul.org
Sun Jul 23 05:39:39 UTC 2006
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv4879
Modified Files:
eventdns.c
Log Message:
Add (void) lines for unused parameters in eventdns.c
Index: eventdns.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/eventdns.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -d -r1.10 -r1.11
--- eventdns.c 7 Jul 2006 19:08:44 -0000 1.10
+++ eventdns.c 23 Jul 2006 05:39:37 -0000 1.11
@@ -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 nameserv
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 *
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
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,
// 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));
More information about the tor-commits
mailing list