fix
[oweals/gnunet.git] / src / util / test_peer.c
index 45633119cf84a2b2df2842c8f158b2b52fe3a8ce..5bf5108bc694863e3c9ace07cebc2ea5e9d12e88 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
 
 #define NUMBER_OF_PEERS 10
 
-#define DEBUG GNUNET_NO
+#define DEBUG GNUNET_EXTRA_LOGGING
 
 /**
- * A list of Peer ID's to play with 
+ * A list of Peer ID's to play with
  */
 static struct GNUNET_PeerIdentity pidArr[NUMBER_OF_PEERS];
 
@@ -70,7 +70,7 @@ check ()
       if (pid != (i + 1))
        {
          fprintf (stderr,
-                  "Unexpected Peer ID returned by intern function \n");
+                  "Unexpected Peer ID returned by intern function\n");
          return 1;
        }
     }
@@ -82,7 +82,7 @@ check ()
       if (pid != (i + 1))
        {
          fprintf (stderr,
-                  "Unexpected Peer ID returned by intern function \n");
+                  "Unexpected Peer ID returned by intern function\n");
          return 1;
        }
     }
@@ -101,10 +101,10 @@ check ()
   GNUNET_PEER_resolve (1, &res);
   GNUNET_assert (0 == memcmp (&res, &pidArr[0], sizeof (res)));
 
-  /* 
-   * Attempt to convert pid = 0 (which is reserved) 
+  /*
+   * Attempt to convert pid = 0 (which is reserved)
    * into a peer identity object, the peer identity memory
-   * is expected to be set to zero 
+   * is expected to be set to zero
    */
   memset (&zero, 0, sizeof (struct GNUNET_PeerIdentity));
   GNUNET_log_skip (1, GNUNET_YES);
@@ -127,6 +127,7 @@ int
 main ()
 {
   int i;
+
   GNUNET_log_setup ("test-peer", "ERROR", NULL);
   for (i = 0; i < 1; i++)
     {