diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-24 21:17:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-24 21:17:50 +0000 |
commit | bdd2a2f82789160f7cd1d5f6d25bdcd75a90937e (patch) | |
tree | 7c1605244708119cc66165b2e8159483ad236235 /src/set | |
parent | e35797e3ca7ce8636289907ca4aa4e1a7c4cfd1f (diff) | |
download | gnunet-bdd2a2f82789160f7cd1d5f6d25bdcd75a90937e.tar.gz gnunet-bdd2a2f82789160f7cd1d5f6d25bdcd75a90937e.zip |
use the correct type for dummy messages
Diffstat (limited to 'src/set')
-rw-r--r-- | src/set/test_set_api.c | 4 | ||||
-rw-r--r-- | src/set/test_set_intersection_result_full.c | 4 | ||||
-rw-r--r-- | src/set/test_set_union_result_symmetric.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/set/test_set_api.c b/src/set/test_set_api.c index eea47f57d..21af45f8a 100644 --- a/src/set/test_set_api.c +++ b/src/set/test_set_api.c | |||
@@ -142,7 +142,7 @@ listen_cb (void *cls, | |||
142 | struct GNUNET_SET_Request *request) | 142 | struct GNUNET_SET_Request *request) |
143 | { | 143 | { |
144 | GNUNET_assert (NULL != context_msg); | 144 | GNUNET_assert (NULL != context_msg); |
145 | GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_TEST); | 145 | GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_DUMMY); |
146 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 146 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
147 | "listen cb called\n"); | 147 | "listen cb called\n"); |
148 | GNUNET_SET_listen_cancel (listen_handle); | 148 | GNUNET_SET_listen_cancel (listen_handle); |
@@ -169,7 +169,7 @@ start (void *cls) | |||
169 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 169 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
170 | "Starting reconciliation\n"); | 170 | "Starting reconciliation\n"); |
171 | context_msg.size = htons (sizeof context_msg); | 171 | context_msg.size = htons (sizeof context_msg); |
172 | context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST); | 172 | context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY); |
173 | listen_handle = GNUNET_SET_listen (config, | 173 | listen_handle = GNUNET_SET_listen (config, |
174 | GNUNET_SET_OPERATION_UNION, | 174 | GNUNET_SET_OPERATION_UNION, |
175 | &app_id, | 175 | &app_id, |
diff --git a/src/set/test_set_intersection_result_full.c b/src/set/test_set_intersection_result_full.c index 9c2f64bc1..f78a03eaf 100644 --- a/src/set/test_set_intersection_result_full.c +++ b/src/set/test_set_intersection_result_full.c | |||
@@ -116,7 +116,7 @@ listen_cb (void *cls, | |||
116 | struct GNUNET_SET_Request *request) | 116 | struct GNUNET_SET_Request *request) |
117 | { | 117 | { |
118 | GNUNET_assert (NULL != context_msg); | 118 | GNUNET_assert (NULL != context_msg); |
119 | GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_TEST); | 119 | GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_DUMMY); |
120 | GNUNET_SET_listen_cancel (listen_handle); | 120 | GNUNET_SET_listen_cancel (listen_handle); |
121 | listen_handle = NULL; | 121 | listen_handle = NULL; |
122 | oh2 = GNUNET_SET_accept (request, | 122 | oh2 = GNUNET_SET_accept (request, |
@@ -139,7 +139,7 @@ start (void *cls) | |||
139 | struct GNUNET_MessageHeader context_msg; | 139 | struct GNUNET_MessageHeader context_msg; |
140 | 140 | ||
141 | context_msg.size = htons (sizeof context_msg); | 141 | context_msg.size = htons (sizeof context_msg); |
142 | context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST); | 142 | context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY); |
143 | listen_handle = GNUNET_SET_listen (config, | 143 | listen_handle = GNUNET_SET_listen (config, |
144 | GNUNET_SET_OPERATION_INTERSECTION, | 144 | GNUNET_SET_OPERATION_INTERSECTION, |
145 | &app_id, | 145 | &app_id, |
diff --git a/src/set/test_set_union_result_symmetric.c b/src/set/test_set_union_result_symmetric.c index 9a02cfefc..ab191a34a 100644 --- a/src/set/test_set_union_result_symmetric.c +++ b/src/set/test_set_union_result_symmetric.c | |||
@@ -177,7 +177,7 @@ listen_cb (void *cls, | |||
177 | struct GNUNET_SET_Request *request) | 177 | struct GNUNET_SET_Request *request) |
178 | { | 178 | { |
179 | GNUNET_assert (NULL != context_msg); | 179 | GNUNET_assert (NULL != context_msg); |
180 | GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_TEST); | 180 | GNUNET_assert (ntohs (context_msg->type) == GNUNET_MESSAGE_TYPE_DUMMY); |
181 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 181 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
182 | "listen cb called\n"); | 182 | "listen cb called\n"); |
183 | GNUNET_SET_listen_cancel (listen_handle); | 183 | GNUNET_SET_listen_cancel (listen_handle); |
@@ -202,7 +202,7 @@ start (void *cls) | |||
202 | struct GNUNET_MessageHeader context_msg; | 202 | struct GNUNET_MessageHeader context_msg; |
203 | 203 | ||
204 | context_msg.size = htons (sizeof context_msg); | 204 | context_msg.size = htons (sizeof context_msg); |
205 | context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST); | 205 | context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY); |
206 | 206 | ||
207 | listen_handle = GNUNET_SET_listen (config, | 207 | listen_handle = GNUNET_SET_listen (config, |
208 | GNUNET_SET_OPERATION_UNION, | 208 | GNUNET_SET_OPERATION_UNION, |