]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
style
authorMark Andrews <marka@isc.org>
Mon, 28 Mar 2011 05:14:51 +0000 (05:14 +0000)
committerMark Andrews <marka@isc.org>
Mon, 28 Mar 2011 05:14:51 +0000 (05:14 +0000)
bin/tests/dst/gsstest.c

index eb9fc2cc34b627fed152bf65982f55952a1379bc..fcdd8086c4700620e070aa6201a956bb96b7310d 100755 (executable)
@@ -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;
                }