use the correct type for dummy messages
authorChristian Grothoff <christian@grothoff.org>
Sat, 24 Sep 2016 21:17:50 +0000 (21:17 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 24 Sep 2016 21:17:50 +0000 (21:17 +0000)
src/set/test_set_api.c
src/set/test_set_intersection_result_full.c
src/set/test_set_union_result_symmetric.c

index eea47f57df218ccf82c3913d59451706e9fad047..21af45f8ac5f002433be6a3e5130f047de36a791 100644 (file)
@@ -142,7 +142,7 @@ listen_cb (void *cls,
            struct GNUNET_SET_Request *request)
 {
   GNUNET_assert (NULL != context_msg);
-  GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_TEST);
+  GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_DUMMY);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "listen cb called\n");
   GNUNET_SET_listen_cancel (listen_handle);
@@ -169,7 +169,7 @@ start (void *cls)
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Starting reconciliation\n");
   context_msg.size = htons (sizeof context_msg);
-  context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST);
+  context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY);
   listen_handle = GNUNET_SET_listen (config,
                                      GNUNET_SET_OPERATION_UNION,
                                      &app_id,
index 9c2f64bc1c87fbb8d5b9e1ab977a632e5219fbb5..f78a03eafa8af673a8ec22f8de344bf6c906faa8 100644 (file)
@@ -116,7 +116,7 @@ listen_cb (void *cls,
            struct GNUNET_SET_Request *request)
 {
   GNUNET_assert (NULL != context_msg);
-  GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_TEST);
+  GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_DUMMY);
   GNUNET_SET_listen_cancel (listen_handle);
   listen_handle = NULL;
   oh2 = GNUNET_SET_accept (request,
@@ -139,7 +139,7 @@ start (void *cls)
   struct GNUNET_MessageHeader context_msg;
 
   context_msg.size = htons (sizeof context_msg);
-  context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST);
+  context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY);
   listen_handle = GNUNET_SET_listen (config,
                                      GNUNET_SET_OPERATION_INTERSECTION,
                                      &app_id,
index 9a02cfefc850981bdfd245fedb58f13f8ff26b21..ab191a34a8408de8afdb7ca46cb075f9bf299f09 100644 (file)
@@ -177,7 +177,7 @@ listen_cb (void *cls,
            struct GNUNET_SET_Request *request)
 {
   GNUNET_assert (NULL != context_msg);
-  GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_TEST);
+  GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_DUMMY);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "listen cb called\n");
   GNUNET_SET_listen_cancel (listen_handle);
@@ -202,7 +202,7 @@ start (void *cls)
   struct GNUNET_MessageHeader context_msg;
 
   context_msg.size = htons (sizeof context_msg);
-  context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST);
+  context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY);
 
   listen_handle = GNUNET_SET_listen (config,
                                      GNUNET_SET_OPERATION_UNION,