diff options
Diffstat (limited to 'src/cadet/test_cadeT_util.c')
-rw-r--r-- | src/cadet/test_cadeT_util.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/cadet/test_cadeT_util.c b/src/cadet/test_cadeT_util.c index fc59349aa..e983dab12 100644 --- a/src/cadet/test_cadeT_util.c +++ b/src/cadet/test_cadeT_util.c | |||
@@ -91,6 +91,13 @@ setup_initiating_peer (void *cls, | |||
91 | { | 91 | { |
92 | struct GNUNET_CADET_Handle *cadet; | 92 | struct GNUNET_CADET_Handle *cadet; |
93 | struct GNUNET_CADET_Channel *channel; | 93 | struct GNUNET_CADET_Channel *channel; |
94 | struct GNUNET_MQ_MessageHandler msg_handlers[] = { | ||
95 | GNUNET_MQ_hd_fixed_size (message, | ||
96 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
97 | struct GNUNET_MessageHeader, | ||
98 | NULL), | ||
99 | GNUNET_MQ_handler_end () | ||
100 | }; | ||
94 | 101 | ||
95 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); | 102 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); |
96 | 103 | ||
@@ -106,7 +113,7 @@ setup_initiating_peer (void *cls, | |||
106 | &hashed_portname, | 113 | &hashed_portname, |
107 | NULL, | 114 | NULL, |
108 | &disconnect_channel, | 115 | &disconnect_channel, |
109 | NULL); | 116 | msg_handlers); |
110 | test_peers[0].channel = channel; | 117 | test_peers[0].channel = channel; |
111 | 118 | ||
112 | return cadet; | 119 | return cadet; |
@@ -132,6 +139,13 @@ setup_listening_peer (void *cls, | |||
132 | { | 139 | { |
133 | struct GNUNET_CADET_Handle *cadet; | 140 | struct GNUNET_CADET_Handle *cadet; |
134 | struct GNUNET_CADET_Port *port; | 141 | struct GNUNET_CADET_Port *port; |
142 | struct GNUNET_MQ_MessageHandler msg_handlers[] = { | ||
143 | GNUNET_MQ_hd_fixed_size (message, | ||
144 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
145 | struct GNUNET_MessageHeader, | ||
146 | NULL), | ||
147 | GNUNET_MQ_handler_end () | ||
148 | }; | ||
135 | 149 | ||
136 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); | 150 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); |
137 | 151 | ||
@@ -147,7 +161,7 @@ setup_listening_peer (void *cls, | |||
147 | NULL, | 161 | NULL, |
148 | NULL, | 162 | NULL, |
149 | &handle_port_disconnects, | 163 | &handle_port_disconnects, |
150 | NULL); | 164 | msg_handlers); |
151 | 165 | ||
152 | return cadet; | 166 | return cadet; |
153 | } | 167 | } |