From: Mark Andrews Date: Mon, 28 Mar 2011 05:14:51 +0000 (+0000) Subject: style X-Git-Tag: v9.9.0a1~386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=779c84fb328a38a5da1cd6e802d054d1e82bc086;p=thirdparty%2Fbind9.git style --- diff --git a/bin/tests/dst/gsstest.c b/bin/tests/dst/gsstest.c index eb9fc2cc34b..fcdd8086c47 100755 --- a/bin/tests/dst/gsstest.c +++ b/bin/tests/dst/gsstest.c @@ -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 @@ -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; }