gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28827 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r28827 - gnunet/src/mesh
Date: Fri, 23 Aug 2013 17:59:04 +0200

Author: bartpolot
Date: 2013-08-23 17:59:04 +0200 (Fri, 23 Aug 2013)
New Revision: 28827

Modified:
   gnunet/src/mesh/test_mesh_single.c
Log:
- indentation

Modified: gnunet/src/mesh/test_mesh_single.c
===================================================================
--- gnunet/src/mesh/test_mesh_single.c  2013-08-23 15:58:48 UTC (rev 28826)
+++ gnunet/src/mesh/test_mesh_single.c  2013-08-23 15:59:04 UTC (rev 28827)
@@ -113,8 +113,9 @@
                void **channel_ctx,
                const struct GNUNET_MessageHeader *message)
 {
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Data callback! Repetition %u\n", 
repetition);
-  printf ("rep %u\n", repetition);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Data callback! Repetition %u/%u\n",
+              repetition, REPETITIONS);
   repetition = repetition + 1;
   if (repetition < REPETITIONS)
   {
@@ -158,7 +159,7 @@
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "received incoming channel on port %u\n",
               port);
-    ch2 = channel;
+  ch2 = channel;
   return NULL;
 }
 
@@ -233,7 +234,7 @@
 
   GNUNET_TESTING_peer_get_identity (me, &id);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n");
-    ch1 = GNUNET_MESH_channel_create (mesh, NULL, &id, 1, GNUNET_YES, 
GNUNET_NO);
+  ch1 = GNUNET_MESH_channel_create (mesh, NULL, &id, 1, GNUNET_YES, GNUNET_NO);
   GNUNET_MESH_notify_transmit_ready (ch1, GNUNET_NO,
                                      GNUNET_TIME_UNIT_FOREVER_REL,
                                      sizeof (struct GNUNET_MessageHeader) + 
DATA_SIZE,
@@ -289,7 +290,7 @@
 {
   if (0 != GNUNET_TESTING_peer_run ("test-mesh-local",
                                     "test_mesh.conf",
-                                &run, NULL))
+                                    &run, NULL))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "run failed\n");
     return 2;




reply via email to

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