aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_send_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_cmd_send_simple.c')
-rw-r--r--src/transport/transport_api_cmd_send_simple.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/transport_api_cmd_send_simple.c b/src/transport/transport_api_cmd_send_simple.c
index 8b37dbf90..ade0cc914 100644
--- a/src/transport/transport_api_cmd_send_simple.c
+++ b/src/transport/transport_api_cmd_send_simple.c
@@ -114,7 +114,7 @@ send_simple_run (void *cls,
114 struct GNUNET_TESTING_Interpreter *is) 114 struct GNUNET_TESTING_Interpreter *is)
115{ 115{
116 struct SendSimpleState *sss = cls; 116 struct SendSimpleState *sss = cls;
117 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map; 117 const struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map;
118 const struct GNUNET_TESTING_Command *peer1_cmd; 118 const struct GNUNET_TESTING_Command *peer1_cmd;
119 // struct GNUNET_ShortHashCode *key = GNUNET_new (struct GNUNET_ShortHashCode); 119 // struct GNUNET_ShortHashCode *key = GNUNET_new (struct GNUNET_ShortHashCode);
120 struct GNUNET_HashCode hc; 120 struct GNUNET_HashCode hc;
@@ -124,7 +124,7 @@ send_simple_run (void *cls,
124 uint32_t num; 124 uint32_t num;
125 struct GNUNET_TESTING_NodeConnection *pos_connection; 125 struct GNUNET_TESTING_NodeConnection *pos_connection;
126 const struct GNUNET_TESTING_Command *system_cmd; 126 const struct GNUNET_TESTING_Command *system_cmd;
127 struct GNUNET_TESTING_System *tl_system; 127 const struct GNUNET_TESTING_System *tl_system;
128 128
129 peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (is, 129 peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (is,
130 sss->start_peer_label); 130 sss->start_peer_label);
@@ -139,8 +139,10 @@ send_simple_run (void *cls,
139 node_connections_head = GNUNET_TESTING_get_connections (sss->num, 139 node_connections_head = GNUNET_TESTING_get_connections (sss->num,
140 sss->topology); 140 sss->topology);
141 141
142 GNUNET_CONTAINER_multishortmap_iterate (connected_peers_map, send_simple_cb, 142 GNUNET_CONTAINER_multishortmap_iterate (
143 sss); 143 (struct GNUNET_CONTAINER_MultiShortmap *)
144 connected_peers_map, send_simple_cb,
145 sss);
144 /*for (int i = 0; i < 1; i++) 146 /*for (int i = 0; i < 1; i++)
145 { 147 {
146 for (pos_connection = node_connections_head; NULL != pos_connection; 148 for (pos_connection = node_connections_head; NULL != pos_connection;