Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
9ec6d5f0
Commit
9ec6d5f0
authored
Feb 01, 1999
by
Bob Halley
Browse files
remove various minor compilation warnings
parent
d55fedfc
Changes
4
Hide whitespace changes
Inline
Side-by-side
bin/named/server.c
View file @
9ec6d5f0
...
...
@@ -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
,
""
);
...
...
bin/named/tcpclient.c
View file @
9ec6d5f0
...
...
@@ -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
);
...
...
bin/named/udpclient.c
View file @
9ec6d5f0
...
...
@@ -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
);
...
...
bin/named/wire_debug.c
View file @
9ec6d5f0
...
...
@@ -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
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment