mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
brace style
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* 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 <stdlib.h>
|
||||
@@ -933,8 +933,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
||||
if (strlen(option) > 1) {
|
||||
value_from_next = ISC_FALSE;
|
||||
value = &option[1];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
value_from_next = ISC_TRUE;
|
||||
value = next;
|
||||
}
|
||||
@@ -977,8 +976,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
(*lookup)->rdclass = rdclass;
|
||||
(*lookup)->rdclassset = ISC_TRUE;
|
||||
}
|
||||
else
|
||||
} else
|
||||
fprintf(stderr, ";; Warning, ignoring "
|
||||
"invalid class %s\n",
|
||||
value);
|
||||
@@ -998,9 +996,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
||||
if (strncasecmp(value, "ixfr=", 5) == 0) {
|
||||
rdtype = dns_rdatatype_ixfr;
|
||||
result = ISC_R_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
tr.base = value;
|
||||
tr.length = strlen(value);
|
||||
result = dns_rdatatype_fromtext(&rdtype,
|
||||
@@ -1019,9 +1015,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
||||
MAXSERIAL);
|
||||
(*lookup)->section_question = plusquest;
|
||||
(*lookup)->comments = pluscomm;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
(*lookup)->rdtype = rdtype;
|
||||
(*lookup)->rdtypeset = ISC_TRUE;
|
||||
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) {
|
||||
rdtype = dns_rdatatype_ixfr;
|
||||
result = ISC_R_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
tr.base = rv[0];
|
||||
tr.length = strlen(rv[0]);
|
||||
result = dns_rdatatype_fromtext(&rdtype,
|
||||
@@ -1242,9 +1234,7 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
|
||||
MAXSERIAL);
|
||||
lookup->section_question = plusquest;
|
||||
lookup->comments = pluscomm;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
lookup->rdtype = rdtype;
|
||||
lookup->rdtypeset = ISC_TRUE;
|
||||
if (rdtype == dns_rdatatype_axfr) {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* 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
|
||||
@@ -1109,8 +1109,7 @@ followup_lookup(dns_message_t *msg, dig_query_t *query,
|
||||
ISC_FALSE;
|
||||
lookup->ns_search_only =
|
||||
ISC_FALSE;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
lookup->trace =
|
||||
query->
|
||||
lookup->trace;
|
||||
@@ -1852,8 +1851,7 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
|
||||
l->retries--;
|
||||
requeue_lookup(l, ISC_TRUE);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
fputs(l->cmdline, stdout);
|
||||
printf(";; connection timed out; no servers could be "
|
||||
"reached\n");
|
||||
@@ -2489,9 +2487,7 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
||||
* should be an NS.
|
||||
*/
|
||||
l->rdtype = dns_rdatatype_ns;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
/*
|
||||
* We got an answer
|
||||
* section for our
|
||||
@@ -2583,8 +2579,7 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
||||
if (msg != NULL)
|
||||
dns_message_destroy(&msg);
|
||||
isc_event_free(&event);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ((msg->rcode == 0) ||
|
||||
(l->origin == NULL)) {
|
||||
received(b->used,
|
||||
|
Reference in New Issue
Block a user