2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

remove various minor compilation warnings

This commit is contained in:
Bob Halley
1999-02-01 20:47:58 +00:00
parent d55fedfce0
commit 9ec6d5f03d
4 changed files with 23 additions and 3 deletions

View File

@@ -85,6 +85,12 @@ makename(isc_mem_t *mctx, char *text, dns_name_t *name, dns_name_t *origin) {
dns_name_fromregion(name, &r2); 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 * Process the wire format message given in r, and return a new packet to
* transmit. * 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); dump_packet(rxr->base + reslen, rxr->length - reslen);
isc_mem_stats(mctx, stdout); /* isc_mem_stats(mctx, stdout); */
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }
@@ -157,13 +163,15 @@ main(int argc, char *argv[])
unsigned int addrlen; unsigned int addrlen;
udp_listener_t *ludp; udp_listener_t *ludp;
tcp_listener_t *ltcp; tcp_listener_t *ltcp;
isc_cfgctx_t *configctx = NULL;
const char *conffile = "/etc/named.conf"; /* XXX hardwired */
dns_name_t base, *origin; dns_name_t base, *origin;
int ch; int ch;
char basetext[1000]; char basetext[1000];
dns_rdatatype_t type = 2; dns_rdatatype_t type = 2;
dns_result_t result; dns_result_t result;
#if 0
isc_cfgctx_t *configctx = NULL;
const char *conffile = "/etc/named.conf"; /* XXX hardwired */
#endif
/*+ XXX */ /*+ XXX */
strcpy(basetext, ""); strcpy(basetext, "");

View File

@@ -411,6 +411,9 @@ tcp_listener_start(tcp_listener_t *l,
{ {
u_int i; u_int i;
(void)nwkeep; /* Make compiler happy. */
(void)nwtimeout; /* Make compiler happy. */
LOCK(&l->lock); LOCK(&l->lock);
INSIST(l->nwactive == 0); INSIST(l->nwactive == 0);
INSIST(dispatch != NULL); INSIST(dispatch != NULL);

View File

@@ -227,6 +227,9 @@ udp_listener_start(udp_listener_t *l,
u_int i; u_int i;
isc_region_t region; isc_region_t region;
(void)nwkeep; /* Make compiler happy. */
(void)nwtimeout; /* Make compiler happy. */
LOCK(&l->lock); LOCK(&l->lock);
INSIST(l->nwactive == 0); INSIST(l->nwactive == 0);
INSIST(dispatch != NULL); INSIST(dispatch != NULL);

View File

@@ -53,6 +53,12 @@ typedef struct dns_message {
dns_namelist_t additional; dns_namelist_t additional;
} dns_message_t; } 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 * in wire_test.c
*/ */