indent
authorBart Polot <bart@net.in.tum.de>
Tue, 30 Aug 2011 16:04:38 +0000 (16:04 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 30 Aug 2011 16:04:38 +0000 (16:04 +0000)
src/mesh/mesh_api_new.c
src/mesh/mesh_protocol.h
src/mesh/test_mesh_small.c

index 6a58d14f00242458f7c3d42392f8abc518d2042c..273d35b2d0c9c240f8cb26ed363df8555ba4ab6b 100644 (file)
@@ -437,8 +437,8 @@ process_incoming_data (struct GNUNET_MESH_Handle *h,
     if (handler->type == type)
     {
       if (GNUNET_OK == handler->callback (h->cls, t, NULL,      /* FIXME ctx */
-                                          peer, payload, NULL)) /* FIXME atsi */
-      {
+                                          peer, payload, NULL))
+      {                         /* FIXME atsi */
         GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                     "MESH: callback completed successfully\n");
       }
index ad62755e9cffedb3a4026e66e04ab14ea5e03690..12723fdacb140cad660e4b92f6216e9a9a27bb6a 100644 (file)
@@ -29,7 +29,8 @@
 #ifdef __cplusplus
 extern "C"
 {
-#if 0                           /* keep Emacsens' auto-indent happy */
+#if 0
+  /* keep Emacsens' auto-indent happy */
 }
 #endif
 #endif
index 6234d03590cc6eeacdfa9b963fea972ad9721248..cea1bef56764179560147d6acec184ff5243848e 100644 (file)
@@ -368,8 +368,9 @@ disconnect_mesh_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     GNUNET_assert (churn_task == GNUNET_SCHEDULER_NO_TASK);
     churn_task = GNUNET_SCHEDULER_add_now (&churn_peers, NULL);
   }
-  else                          /* No more rounds, let's shut it down! */
-  {
+  else
+  {                             /* No more rounds, let's shut it down! */
+
     stats_context = GNUNET_malloc (sizeof (struct StatsContext));
     GNUNET_SCHEDULER_cancel (shutdown_handle);
     shutdown_handle = GNUNET_SCHEDULER_NO_TASK;
@@ -406,8 +407,8 @@ churn_callback (void *cls, const char *emsg)
 {
   char *temp_output_file;
 
-  if (emsg == NULL)             /* Everything is okay! */
-  {
+  if (emsg == NULL)
+  {                             /* Everything is okay! */
     peers_running = peers_next_round;
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Round %llu, churn finished successfully.\n", current_round);
@@ -493,7 +494,6 @@ peergroup_ready (void *cls, const char *emsg)
     GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
     return;
   }
-
 #if VERBOSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer Group started successfully!\n");
 #endif