Commit 9ec6d5f0 authored by Bob Halley's avatar Bob Halley
Browse files

remove various minor compilation warnings

parent d55fedfc
......@@ -85,6 +85,12 @@ makename(isc_mem_t *mctx, char *text, dns_name_t *name, dns_name_t *origin) {
dns_name_fromregion(name, &r2);
}
/*
* XXX This will be in a .h file soon...
*/
dns_result_t
resolve_packet(dns_db_t *db, isc_buffer_t *source, isc_buffer_t *target);
/*
* Process the wire format message given in r, and return a new packet to
* transmit.
......@@ -140,7 +146,7 @@ dispatch(isc_mem_t *mctx, isc_region_t *rxr, unsigned int reslen)
dump_packet(rxr->base + reslen, rxr->length - reslen);
isc_mem_stats(mctx, stdout);
/* isc_mem_stats(mctx, stdout); */
return (DNS_R_SUCCESS);
}
......@@ -157,13 +163,15 @@ main(int argc, char *argv[])
unsigned int addrlen;
udp_listener_t *ludp;
tcp_listener_t *ltcp;
isc_cfgctx_t *configctx = NULL;
const char *conffile = "/etc/named.conf"; /* XXX hardwired */
dns_name_t base, *origin;
int ch;
char basetext[1000];
dns_rdatatype_t type = 2;
dns_result_t result;
#if 0
isc_cfgctx_t *configctx = NULL;
const char *conffile = "/etc/named.conf"; /* XXX hardwired */
#endif
/*+ XXX */
strcpy(basetext, "");
......
......@@ -411,6 +411,9 @@ tcp_listener_start(tcp_listener_t *l,
{
u_int i;
(void)nwkeep; /* Make compiler happy. */
(void)nwtimeout; /* Make compiler happy. */
LOCK(&l->lock);
INSIST(l->nwactive == 0);
INSIST(dispatch != NULL);
......
......@@ -227,6 +227,9 @@ udp_listener_start(udp_listener_t *l,
u_int i;
isc_region_t region;
(void)nwkeep; /* Make compiler happy. */
(void)nwtimeout; /* Make compiler happy. */
LOCK(&l->lock);
INSIST(l->nwactive == 0);
INSIST(dispatch != NULL);
......
......@@ -53,6 +53,12 @@ typedef struct dns_message {
dns_namelist_t additional;
} dns_message_t;
void
dump_packet(char *buf, u_int len);
dns_result_t
resolve_packet(dns_db_t *db, isc_buffer_t *source, isc_buffer_t *target);
/*
* in wire_test.c
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment