include element type in hash
[oweals/gnunet.git] / src / core / test_core_api_mq.c
index 7a255e00f5adbc825145ec293b107bbf6e2cafc8..6c635449304a40237a0cac02b7d4442982327691 100644 (file)
@@ -1,6 +1,6 @@
 /*
   This file is part of GNUnet.
-  (C) 2013 Christian Grothoff (and other contributing authors)
+  Copyright (C) 2013 Christian Grothoff (and other contributing authors)
 
   GNUnet is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
   You should have received a copy of the GNU General Public License
   along with GNUnet; see the file COPYING.  If not, write to the
-  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-  Boston, MA 02111-1307, USA.
+  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+  Boston, MA 02110-1301, USA.
 */
 
 #include "platform.h"
@@ -65,7 +65,7 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *peer)
     struct GNUNET_MQ_Envelope *ev;
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Queueing messages.\n");
     for (i = 0; i < NUM_MSG; i++)
-    { 
+    {
       ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_TEST);
       GNUNET_MQ_send (mq, ev);
     }
@@ -88,7 +88,7 @@ handle_test (void *cls,
   }
   if (num_received > NUM_MSG)
   {
-    GNUNET_abort ();
+    GNUNET_assert (0);
     return GNUNET_SYSERR;
   }
   return GNUNET_OK;
@@ -107,13 +107,13 @@ shutdown_task (void *cls,
 
 /**
  * Initialize framework and start test
- * 
+ *
  * @param cls Closure (unused).
  * @param cfg Configuration handle.
  * @param peer Testing peer handle.
  */
 static void
-run (void *cls, 
+run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg,
      struct GNUNET_TESTING_Peer *peer)
 {
@@ -127,7 +127,7 @@ run (void *cls,
                               GNUNET_NO, handlers);
   if (NULL == core)
   {
-    GNUNET_abort ();
+    GNUNET_assert (0);
     return;
   }
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, NULL);