minor style fixes
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dig.c,v 1.139 2001/02/15 23:57:22 bwelling Exp $ */
|
||||
/* $Id: dig.c,v 1.140 2001/02/17 01:05:27 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
@@ -440,9 +440,8 @@ buftoosmall:
|
||||
result = dns_message_sectiontotext(msg,
|
||||
DNS_SECTION_QUESTION,
|
||||
flags, buf);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
check_result(result, "dns_message_sectiontotext");
|
||||
}
|
||||
}
|
||||
@@ -451,15 +450,13 @@ buftoosmall:
|
||||
result = dns_message_sectiontotext(msg,
|
||||
DNS_SECTION_ANSWER,
|
||||
flags, buf);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
check_result(result, "dns_message_sectiontotext");
|
||||
} else {
|
||||
result = short_answer(msg, flags, buf, query);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
check_result(result, "short_answer");
|
||||
}
|
||||
}
|
||||
@@ -468,9 +465,8 @@ buftoosmall:
|
||||
result = dns_message_sectiontotext(msg,
|
||||
DNS_SECTION_AUTHORITY,
|
||||
flags, buf);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
check_result(result, "dns_message_sectiontotext");
|
||||
}
|
||||
}
|
||||
@@ -479,9 +475,8 @@ buftoosmall:
|
||||
result = dns_message_sectiontotext(msg,
|
||||
DNS_SECTION_ADDITIONAL,
|
||||
flags, buf);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
check_result(result, "dns_message_sectiontotext");
|
||||
/*
|
||||
* Only print the signature on the first record.
|
||||
@@ -491,19 +486,16 @@ buftoosmall:
|
||||
msg,
|
||||
DNS_PSEUDOSECTION_TSIG,
|
||||
flags, buf);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
check_result(result,
|
||||
"dns_message_pseudosectiontotext");
|
||||
result = dns_message_pseudosectiontotext(
|
||||
msg,
|
||||
DNS_PSEUDOSECTION_SIG0,
|
||||
flags, buf);
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
if (result == ISC_R_NOSPACE)
|
||||
goto buftoosmall;
|
||||
}
|
||||
|
||||
check_result(result,
|
||||
"dns_message_pseudosectiontotext");
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dighost.c,v 1.192 2001/02/17 00:41:03 gson Exp $ */
|
||||
/* $Id: dighost.c,v 1.193 2001/02/17 01:05:29 gson Exp $ */
|
||||
|
||||
/*
|
||||
* Notice to programmers: Do not use this code as an example of how to
|
||||
@@ -420,7 +420,7 @@ clone_lookup(dig_lookup_t *lookold, isc_boolean_t servers) {
|
||||
|
||||
looknew = make_empty_lookup();
|
||||
INSIST(looknew != NULL);
|
||||
strncpy(looknew->textname, lookold-> textname, MXNAME);
|
||||
strncpy(looknew->textname, lookold->textname, MXNAME);
|
||||
strncpy(looknew->cmdline, lookold->cmdline, MXNAME);
|
||||
looknew->textname[MXNAME-1] = 0;
|
||||
looknew->rdtype = lookold->rdtype;
|
||||
@@ -453,8 +453,8 @@ clone_lookup(dig_lookup_t *lookold, isc_boolean_t servers) {
|
||||
looknew->section_additional = lookold->section_additional;
|
||||
looknew->retries = lookold->retries;
|
||||
#ifdef DNS_OPT_NEWCODES_LIVE
|
||||
strncpy(looknew->viewname, lookold-> viewname, MXNAME);
|
||||
strncpy(looknew->zonename, lookold-> zonename, MXNAME);
|
||||
strncpy(looknew->viewname, lookold->viewname, MXNAME);
|
||||
strncpy(looknew->zonename, lookold->zonename, MXNAME);
|
||||
#endif /* DNS_OPT_NEWCODES_LIVE */
|
||||
|
||||
if (servers)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dig.h,v 1.66 2001/02/15 23:44:08 tamino Exp $ */
|
||||
/* $Id: dig.h,v 1.67 2001/02/17 01:05:30 gson Exp $ */
|
||||
|
||||
#ifndef DIG_H
|
||||
#define DIG_H
|
||||
@@ -85,7 +85,8 @@ struct dig_lookup {
|
||||
ns_search_only,
|
||||
ns_search_only_leafnode,
|
||||
identify, /* Append an "on server <foo>" message */
|
||||
identify_previous_line, /* Prepend a "Nameserver <foo>:" message, with newline and tab */
|
||||
identify_previous_line, /* Prepend a "Nameserver <foo>:"
|
||||
message, with newline and tab */
|
||||
ignore,
|
||||
recurse,
|
||||
aaonly,
|
||||
|
||||
Reference in New Issue
Block a user