gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 08/15: test_multicast_2peers.c: fix code style


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 08/15: test_multicast_2peers.c: fix code style
Date: Wed, 19 Apr 2017 09:39:15 +0200

This is an automated email from the git hooks/post-receive script.

xrs pushed a commit to branch master
in repository gnunet.

commit 501c1f7794be6e8a2ea15200dbdadd4c066edb89
Author: xrs <address@hidden>
AuthorDate: Mon Mar 13 20:27:45 2017 +0100

    test_multicast_2peers.c: fix code style
---
 src/multicast/test_multicast_2peers.c | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/multicast/test_multicast_2peers.c 
b/src/multicast/test_multicast_2peers.c
index 02e60a905..9d1f42063 100644
--- a/src/multicast/test_multicast_2peers.c
+++ b/src/multicast/test_multicast_2peers.c
@@ -117,6 +117,7 @@ member_join_request (void *cls,
 
 }
 
+
 int notify (void *cls,
             size_t *data_size,
             void *data)
@@ -155,6 +156,7 @@ member_join_decision (void *cls,
   }
 }
 
+
 static void
 member_message (void *cls, 
                 const struct GNUNET_MULTICAST_MessageHeader *msg)
@@ -174,6 +176,7 @@ member_message (void *cls,
   GNUNET_SCHEDULER_shutdown ();
 }
 
+
 static void
 origin_join_request (void *cls,
                  const struct GNUNET_CRYPTO_EcdsaPublicKey *member_pub_key,
@@ -208,6 +211,7 @@ origin_join_request (void *cls,
   result = GNUNET_OK;
 }
 
+
 int
 origin_notify (void *cls, 
                size_t *data_size, 
@@ -239,6 +243,7 @@ origin_request (void *cls,
                                   NULL);
 }
 
+
 static void
 origin_message (void *cls,
                 const struct GNUNET_MULTICAST_MessageHeader *msg) 
@@ -255,17 +260,18 @@ service_connect1 (void *cls,
 {
   member = ca_result;
 
-  if (NULL != member) 
+  if (NULL == member)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Connected to multicast service of 
member\n");
+    result = GNUNET_SYSERR;
+    GNUNET_SCHEDULER_shutdown ();
   }
   else
   {
-    result = GNUNET_SYSERR;
-    GNUNET_SCHEDULER_shutdown ();
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Connected to multicast service of 
member\n");
   }
 }
 
+
 static void
 multicast_da1 (void *cls,
                void * op_result)
@@ -349,9 +355,10 @@ peer_information_cb (void *cls,
                                           multicast_da1,     /* callback to be 
called when closing the
                                                                 opened service 
connection */
                                           NULL);                   /* closure 
for the above two callbacks */
-    }
+  }
 }
 
+
 /**
  * Test logic of peer "0" being origin starts here.
  *
@@ -485,7 +492,7 @@ main (int argc, char *argv[])
 
   result = GNUNET_SYSERR;
   ret = GNUNET_TESTBED_test_run
-      ("test-multicast-multipeer",  /* test case name */
+      ("test-multicast-2peers",  /* test case name */
        "test_multicast.conf", /* template configuration */
        NUM_PEERS,       /* number of peers to start */
        0LL, /* Event mask - set to 0 for no event notifications */
@@ -498,4 +505,5 @@ main (int argc, char *argv[])
   return 0;
 }
 
-/* end of test_multicast_multipeer.c */
+
+/* end of test_multicast_2peers.c */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]