mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
style
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gsstest.c,v 1.15 2011/03/28 05:11:43 marka Exp $ */
|
||||
/* $Id: gsstest.c,v 1.16 2011/03/28 05:14:51 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -107,19 +107,19 @@ console(isc_task_t *task, isc_event_t *event)
|
||||
printf("\nCommand => ");
|
||||
c = scanf("%s", buf);
|
||||
|
||||
if(c == EOF || strcmp(buf, "quit") == 0) {
|
||||
if (c == EOF || strcmp(buf, "quit") == 0) {
|
||||
isc_app_shutdown();
|
||||
return;
|
||||
}
|
||||
|
||||
if(strcmp(buf, "initctx") == 0) {
|
||||
if (strcmp(buf, "initctx") == 0) {
|
||||
ev = isc_event_allocate(mctx, (void *)1, 1, initctx1,
|
||||
NULL, sizeof(*event));
|
||||
isc_task_send(task, &ev);
|
||||
return;
|
||||
}
|
||||
|
||||
if(strcmp(buf, "query") == 0) {
|
||||
if (strcmp(buf, "query") == 0) {
|
||||
ev = isc_event_allocate(mctx, (void *)1, 1, sendquery,
|
||||
NULL, sizeof(*event));
|
||||
isc_task_send(task, &ev);
|
||||
@@ -318,7 +318,7 @@ initctx2(isc_task_t *task, isc_event_t *event) {
|
||||
rdataset = ISC_LIST_HEAD(question_name->list);
|
||||
INSIST(rdataset != NULL);
|
||||
qtype = rdataset->type;
|
||||
if(qtype == dns_rdatatype_tkey) {
|
||||
if (qtype == dns_rdatatype_tkey) {
|
||||
printf("Received TKEY response from server\n");
|
||||
printf("Context completed\n");
|
||||
} else {
|
||||
@@ -328,14 +328,14 @@ initctx2(isc_task_t *task, isc_event_t *event) {
|
||||
tsigkey = NULL;
|
||||
}
|
||||
|
||||
if(response)
|
||||
if (response)
|
||||
dns_message_destroy(&response);
|
||||
|
||||
end:
|
||||
if(query)
|
||||
if (query)
|
||||
dns_message_destroy(&query);
|
||||
|
||||
if(reqev->request)
|
||||
if (reqev->request)
|
||||
dns_request_destroy(&reqev->request);
|
||||
|
||||
isc_event_free(&event);
|
||||
@@ -422,7 +422,7 @@ setup(void)
|
||||
printf("Server IP => ");
|
||||
c = scanf("%s", serveraddress);
|
||||
|
||||
if(c == EOF || strcmp(serveraddress, "quit") == 0) {
|
||||
if (c == EOF || strcmp(serveraddress, "quit") == 0) {
|
||||
isc_app_shutdown();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user