mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
brace style
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dig.c,v 1.145 2001/05/08 15:56:01 gson Exp $ */
|
/* $Id: dig.c,v 1.146 2001/06/11 18:08:15 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -933,8 +933,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
if (strlen(option) > 1) {
|
if (strlen(option) > 1) {
|
||||||
value_from_next = ISC_FALSE;
|
value_from_next = ISC_FALSE;
|
||||||
value = &option[1];
|
value = &option[1];
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
value_from_next = ISC_TRUE;
|
value_from_next = ISC_TRUE;
|
||||||
value = next;
|
value = next;
|
||||||
}
|
}
|
||||||
@@ -977,8 +976,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
(*lookup)->rdclass = rdclass;
|
(*lookup)->rdclass = rdclass;
|
||||||
(*lookup)->rdclassset = ISC_TRUE;
|
(*lookup)->rdclassset = ISC_TRUE;
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
fprintf(stderr, ";; Warning, ignoring "
|
fprintf(stderr, ";; Warning, ignoring "
|
||||||
"invalid class %s\n",
|
"invalid class %s\n",
|
||||||
value);
|
value);
|
||||||
@@ -998,9 +996,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
if (strncasecmp(value, "ixfr=", 5) == 0) {
|
if (strncasecmp(value, "ixfr=", 5) == 0) {
|
||||||
rdtype = dns_rdatatype_ixfr;
|
rdtype = dns_rdatatype_ixfr;
|
||||||
result = ISC_R_SUCCESS;
|
result = ISC_R_SUCCESS;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
tr.base = value;
|
tr.base = value;
|
||||||
tr.length = strlen(value);
|
tr.length = strlen(value);
|
||||||
result = dns_rdatatype_fromtext(&rdtype,
|
result = dns_rdatatype_fromtext(&rdtype,
|
||||||
@@ -1019,9 +1015,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
MAXSERIAL);
|
MAXSERIAL);
|
||||||
(*lookup)->section_question = plusquest;
|
(*lookup)->section_question = plusquest;
|
||||||
(*lookup)->comments = pluscomm;
|
(*lookup)->comments = pluscomm;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
(*lookup)->rdtype = rdtype;
|
(*lookup)->rdtype = rdtype;
|
||||||
(*lookup)->rdtypeset = ISC_TRUE;
|
(*lookup)->rdtypeset = ISC_TRUE;
|
||||||
if (rdtype == dns_rdatatype_axfr) {
|
if (rdtype == dns_rdatatype_axfr) {
|
||||||
@@ -1219,9 +1213,7 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
|
|||||||
if (strncmp(rv[0], "ixfr=", 5) == 0) {
|
if (strncmp(rv[0], "ixfr=", 5) == 0) {
|
||||||
rdtype = dns_rdatatype_ixfr;
|
rdtype = dns_rdatatype_ixfr;
|
||||||
result = ISC_R_SUCCESS;
|
result = ISC_R_SUCCESS;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
tr.base = rv[0];
|
tr.base = rv[0];
|
||||||
tr.length = strlen(rv[0]);
|
tr.length = strlen(rv[0]);
|
||||||
result = dns_rdatatype_fromtext(&rdtype,
|
result = dns_rdatatype_fromtext(&rdtype,
|
||||||
@@ -1242,9 +1234,7 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
|
|||||||
MAXSERIAL);
|
MAXSERIAL);
|
||||||
lookup->section_question = plusquest;
|
lookup->section_question = plusquest;
|
||||||
lookup->comments = pluscomm;
|
lookup->comments = pluscomm;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
lookup->rdtype = rdtype;
|
lookup->rdtype = rdtype;
|
||||||
lookup->rdtypeset = ISC_TRUE;
|
lookup->rdtypeset = ISC_TRUE;
|
||||||
if (rdtype == dns_rdatatype_axfr) {
|
if (rdtype == dns_rdatatype_axfr) {
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dighost.c,v 1.200 2001/04/26 17:20:07 gson Exp $ */
|
/* $Id: dighost.c,v 1.201 2001/06/11 18:08:16 gson Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notice to programmers: Do not use this code as an example of how to
|
* Notice to programmers: Do not use this code as an example of how to
|
||||||
@@ -1109,8 +1109,7 @@ followup_lookup(dns_message_t *msg, dig_query_t *query,
|
|||||||
ISC_FALSE;
|
ISC_FALSE;
|
||||||
lookup->ns_search_only =
|
lookup->ns_search_only =
|
||||||
ISC_FALSE;
|
ISC_FALSE;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
lookup->trace =
|
lookup->trace =
|
||||||
query->
|
query->
|
||||||
lookup->trace;
|
lookup->trace;
|
||||||
@@ -1852,8 +1851,7 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
|
|||||||
l->retries--;
|
l->retries--;
|
||||||
requeue_lookup(l, ISC_TRUE);
|
requeue_lookup(l, ISC_TRUE);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
fputs(l->cmdline, stdout);
|
fputs(l->cmdline, stdout);
|
||||||
printf(";; connection timed out; no servers could be "
|
printf(";; connection timed out; no servers could be "
|
||||||
"reached\n");
|
"reached\n");
|
||||||
@@ -2489,9 +2487,7 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
|||||||
* should be an NS.
|
* should be an NS.
|
||||||
*/
|
*/
|
||||||
l->rdtype = dns_rdatatype_ns;
|
l->rdtype = dns_rdatatype_ns;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
/*
|
/*
|
||||||
* We got an answer
|
* We got an answer
|
||||||
* section for our
|
* section for our
|
||||||
@@ -2583,8 +2579,7 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
|||||||
if (msg != NULL)
|
if (msg != NULL)
|
||||||
dns_message_destroy(&msg);
|
dns_message_destroy(&msg);
|
||||||
isc_event_free(&event);
|
isc_event_free(&event);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if ((msg->rcode == 0) ||
|
if ((msg->rcode == 0) ||
|
||||||
(l->origin == NULL)) {
|
(l->origin == NULL)) {
|
||||||
received(b->used,
|
received(b->used,
|
||||||
|
Reference in New Issue
Block a user