summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2020-03-19 21:03:42 +0100
committerxrs <xrs@mail36.net>2020-06-19 22:51:20 +0200
commitd13293d69d916e6f8e2c1d6669a4a1f7c44c89cf (patch)
tree93f1cbcf9f300af02d72540190a5813f76c59de7
parent861de156af56ed4ec8c6065c5ab36a0a3ee742b4 (diff)
handle received message; fix format; fix testbed ops
-rw-r--r--src/cadet/test_cadeT.c5
-rw-r--r--src/cadet/test_cadeT_util.c9
-rw-r--r--src/cadet/test_cadeT_util.h3
3 files changed, 6 insertions, 11 deletions
diff --git a/src/cadet/test_cadeT.c b/src/cadet/test_cadeT.c
index 1f1d3831e..88ceded08 100644
--- a/src/cadet/test_cadeT.c
+++ b/src/cadet/test_cadeT.c
@@ -124,8 +124,9 @@ set_data_loss_rate (int rate)
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s: %i loss.\n", __func__, rate);
}
-void
-handle_message ()
+void
+handle_message (void *cls,
+ const struct GNUNET_MessageHeader *msg)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
}
diff --git a/src/cadet/test_cadeT_util.c b/src/cadet/test_cadeT_util.c
index 7f28678b9..bf65aca32 100644
--- a/src/cadet/test_cadeT_util.c
+++ b/src/cadet/test_cadeT_util.c
@@ -102,13 +102,6 @@ setup_initiating_peer (void *cls,
{
struct GNUNET_CADET_Handle *cadet;
struct GNUNET_CADET_Channel *channel;
- struct GNUNET_MQ_MessageHandler msg_handlers[] = {
- GNUNET_MQ_hd_fixed_size (message,
- GNUNET_MESSAGE_TYPE_DUMMY,
- struct GNUNET_MessageHeader,
- NULL),
- GNUNET_MQ_handler_end ()
- };
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
@@ -124,7 +117,7 @@ setup_initiating_peer (void *cls,
&hashed_portname,
NULL,
&disconnect_channel,
- msg_handlers);
+ NULL);
test_peers[0].channel = channel;
return cadet;
diff --git a/src/cadet/test_cadeT_util.h b/src/cadet/test_cadeT_util.h
index e12732d14..d22ab8960 100644
--- a/src/cadet/test_cadeT_util.h
+++ b/src/cadet/test_cadeT_util.h
@@ -47,7 +47,8 @@ int
check_message (void *cls,
const struct GNUNET_MessageHeader *message);
-void handle_message ();
+void handle_message (void *cls,
+ const struct GNUNET_MessageHeader *msg);
/**
* Structure for storing information of testbed peers.