diff options
-rw-r--r-- | src/cadet/test_cadeT.c | 5 | ||||
-rw-r--r-- | src/cadet/test_cadeT_util.c | 9 | ||||
-rw-r--r-- | src/cadet/test_cadeT_util.h | 3 |
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) | |||
124 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s: %i loss.\n", __func__, rate); | 124 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s: %i loss.\n", __func__, rate); |
125 | } | 125 | } |
126 | 126 | ||
127 | void | 127 | void |
128 | handle_message () | 128 | handle_message (void *cls, |
129 | const struct GNUNET_MessageHeader *msg) | ||
129 | { | 130 | { |
130 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); | 131 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); |
131 | } | 132 | } |
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, | |||
102 | { | 102 | { |
103 | struct GNUNET_CADET_Handle *cadet; | 103 | struct GNUNET_CADET_Handle *cadet; |
104 | struct GNUNET_CADET_Channel *channel; | 104 | struct GNUNET_CADET_Channel *channel; |
105 | struct GNUNET_MQ_MessageHandler msg_handlers[] = { | ||
106 | GNUNET_MQ_hd_fixed_size (message, | ||
107 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
108 | struct GNUNET_MessageHeader, | ||
109 | NULL), | ||
110 | GNUNET_MQ_handler_end () | ||
111 | }; | ||
112 | 105 | ||
113 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); | 106 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); |
114 | 107 | ||
@@ -124,7 +117,7 @@ setup_initiating_peer (void *cls, | |||
124 | &hashed_portname, | 117 | &hashed_portname, |
125 | NULL, | 118 | NULL, |
126 | &disconnect_channel, | 119 | &disconnect_channel, |
127 | msg_handlers); | 120 | NULL); |
128 | test_peers[0].channel = channel; | 121 | test_peers[0].channel = channel; |
129 | 122 | ||
130 | return cadet; | 123 | 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 | |||
47 | check_message (void *cls, | 47 | check_message (void *cls, |
48 | const struct GNUNET_MessageHeader *message); | 48 | const struct GNUNET_MessageHeader *message); |
49 | 49 | ||
50 | void handle_message (); | 50 | void handle_message (void *cls, |
51 | const struct GNUNET_MessageHeader *msg); | ||
51 | 52 | ||
52 | /** | 53 | /** |
53 | * Structure for storing information of testbed peers. | 54 | * Structure for storing information of testbed peers. |