mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 23:55:27 +00:00
added missing prototype to show_usage().
added UNUSED(first) for when USEINITALWS is not defined. use ISC_TF() when assigning a boolean value. added missing spaces around assignment operators per ISC style.
This commit is contained in:
@@ -111,7 +111,7 @@ static char *rcodetext[] = {
|
||||
};
|
||||
|
||||
static void
|
||||
show_usage() {
|
||||
show_usage(void) {
|
||||
fputs (
|
||||
"Usage: dig [@global-server] [domain] [q-type] [q-class] {q-opt}\n"
|
||||
" {global-d-opt} host [@local-server] {local-d-opt}\n"
|
||||
@@ -287,6 +287,8 @@ printsection(dns_message_t *msg, dns_section_t sectionid, char *section_name,
|
||||
print_name = &empty_name;
|
||||
first = ISC_FALSE;
|
||||
}
|
||||
#else
|
||||
UNUSED(first); /* Shut up compiler. */
|
||||
#endif
|
||||
} else {
|
||||
loopresult = dns_rdataset_first(rdataset);
|
||||
@@ -560,7 +562,8 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
||||
for (rc--, rv++; rc > 0; rc--, rv++) {
|
||||
debug ("Main parsing %s", rv[0]);
|
||||
if (strncmp(rv[0], "@", 1) == 0) {
|
||||
srv=isc_mem_allocate(mctx, sizeof(struct dig_server));
|
||||
srv = isc_mem_allocate(mctx,
|
||||
sizeof(struct dig_server));
|
||||
if (srv == NULL)
|
||||
fatal("Memory allocation failure.");
|
||||
strncpy(srv->servername, &rv[0][1], MXNAME-1);
|
||||
@@ -984,7 +987,7 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
||||
lookup->xfr_q = NULL;
|
||||
lookup->origin = NULL;
|
||||
lookup->use_my_server_list = ISC_FALSE;
|
||||
lookup->trace = (trace || ns_search_only);
|
||||
lookup->trace = ISC_TF(trace || ns_search_only);
|
||||
lookup->trace_root = trace;
|
||||
lookup->ns_search_only = ns_search_only;
|
||||
lookup->doing_xfr = ISC_FALSE;
|
||||
@@ -1043,7 +1046,7 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
||||
lookup->use_my_server_list = ISC_FALSE;
|
||||
lookup->doing_xfr = ISC_FALSE;
|
||||
lookup->defname = ISC_FALSE;
|
||||
lookup->trace = (trace || ns_search_only);
|
||||
lookup->trace = ISC_TF(trace || ns_search_only);
|
||||
lookup->trace_root = trace;
|
||||
lookup->ns_search_only = ns_search_only;
|
||||
lookup->identify = identify;
|
||||
@@ -1110,7 +1113,7 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
||||
lookup->use_my_server_list = ISC_FALSE;
|
||||
lookup->doing_xfr = ISC_FALSE;
|
||||
lookup->defname = ISC_FALSE;
|
||||
lookup->trace = (trace || ns_search_only);
|
||||
lookup->trace = ISC_TF(trace || ns_search_only);
|
||||
lookup->trace_root = trace;
|
||||
lookup->ns_search_only = ns_search_only;
|
||||
lookup->identify = identify;
|
||||
|
Reference in New Issue
Block a user