- allow slow botnets enough time
[oweals/gnunet.git] / src / mesh / mesh_block_lib.c
index 8e06e9f53709df263ba454b5db78c43ddb1f50b1..c24242f3e7e291b2c8875f4d3ce58ef4909144ae 100644 (file)
      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
      Boston, MA 02111-1307, USA.
 */
-
 /**
  * @author Bartlomiej Polot
  * @file mesh/mesh_block_lib.c
  */
-
-#ifdef __cplusplus
-extern "C"
-{
-#if 0
-  /* keep Emacsens' auto-indent happy */
-}
-#endif
-#endif
-
+#include "platform.h"
 #include "mesh_block_lib.h"
 
 /**
@@ -116,11 +106,11 @@ GNUNET_MESH_regex_block_iterate (const struct MeshRegexBlock *block,
   aux = (char *) &block[1];  // Skip regex block
   aux = &aux[n];             // Skip regex proof
   n = ntohl (block->n_edges);
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* Edges: %u\n", n);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "*  Edges: %u\n", n);
   for (i = 0; i < n; i++) // aux always points at the end of the previous block
   {
     offset += sizeof (struct MeshRegexEdge);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "*  Edge %u, off %u\n", i, offset);
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "*   Edge %u, off %u\n", i, offset);
     if (offset > size) // Is it safe to access the next edge block?
     {
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -131,7 +121,7 @@ GNUNET_MESH_regex_block_iterate (const struct MeshRegexBlock *block,
     n_token = ntohl (edge->n_token);
     offset += n_token;
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                "*   Token lenght %u, off %u\n", n_token, offset);
+                "*    Token lenght %u, off %u\n", n_token, offset);
     if (offset > size) // Is it safe to access the edge token?
     {
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -156,11 +146,4 @@ GNUNET_MESH_regex_block_iterate (const struct MeshRegexBlock *block,
   return GNUNET_SYSERR;
 }
 
-#if 0                           /* keep Emacsens' auto-indent happy */
-{
-#endif
-#ifdef __cplusplus
-}
-#endif
-
 /* end of mesh_block_lib.c */