if we insist on printing pointer values, at least make it stop

complaining on (my particular) 64 bit platform.


svn:r6530
This commit is contained in:
Roger Dingledine 2006-06-04 06:17:32 +00:00
parent 603b09b59b
commit c4647545a0

View File

@ -477,7 +477,7 @@ request_finished(struct request *const req, struct request **head) {
} }
} }
log("Removing timeout for %x\n", (unsigned) req); log("Removing timeout for %lx\n", (unsigned long) req);
evtimer_del(&req->timeout_event); evtimer_del(&req->timeout_event);
search_request_finished(req); search_request_finished(req);
@ -933,7 +933,7 @@ static void
eventdns_request_timeout_callback(int fd, short events, void *arg) { eventdns_request_timeout_callback(int fd, short events, void *arg) {
struct request *const req = (struct request *) arg; struct request *const req = (struct request *) arg;
log("Request %x timed out\n", (unsigned) arg); log("Request %lx timed out\n", (unsigned long) arg);
req->ns->timedout++; req->ns->timedout++;
if (req->ns->timedout > global_max_nameserver_timeout) { if (req->ns->timedout > global_max_nameserver_timeout) {
@ -1005,7 +1005,7 @@ eventdns_request_transmit(struct request *req) {
// fall through // fall through
default: default:
// all ok // all ok
log("Setting timeout for %x\n", (unsigned) req); log("Setting timeout for %lx\n", (unsigned long) req);
evtimer_set(&req->timeout_event, eventdns_request_timeout_callback, req); evtimer_set(&req->timeout_event, eventdns_request_timeout_callback, req);
evtimer_add(&req->timeout_event, &global_timeout); evtimer_add(&req->timeout_event, &global_timeout);
req->tx_count++; req->tx_count++;