aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-06-19 11:59:48 +0000
committerBart Polot <bart@net.in.tum.de>2013-06-19 11:59:48 +0000
commit2ee4f7f0c0a6f0c88a7a0e0f4546c5eb01f2ba75 (patch)
tree2ae1270ac9f4fc1ab5a31cf0bccda0adeb580c39
parent0e15cbeb7359ad8c4095bb371c6992f22d8fa3b8 (diff)
downloadgnunet-2ee4f7f0c0a6f0c88a7a0e0f4546c5eb01f2ba75.tar.gz
gnunet-2ee4f7f0c0a6f0c88a7a0e0f4546c5eb01f2ba75.zip
- use new data callback with no sender info
-rw-r--r--src/mesh/test_mesh2_local.c2
-rw-r--r--src/mesh/test_mesh2_small.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/mesh/test_mesh2_local.c b/src/mesh/test_mesh2_local.c
index b62cc9ac8..68452ffdf 100644
--- a/src/mesh/test_mesh2_local.c
+++ b/src/mesh/test_mesh2_local.c
@@ -97,7 +97,6 @@ do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
97 * @param cls closure (set from GNUNET_MESH_connect) 97 * @param cls closure (set from GNUNET_MESH_connect)
98 * @param tunnel connection to the other end 98 * @param tunnel connection to the other end
99 * @param tunnel_ctx place to store local state associated with the tunnel 99 * @param tunnel_ctx place to store local state associated with the tunnel
100 * @param sender who sent the message
101 * @param message the actual message 100 * @param message the actual message
102 * 101 *
103 * @return GNUNET_OK to keep the connection open, 102 * @return GNUNET_OK to keep the connection open,
@@ -105,7 +104,6 @@ do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
105 */ 104 */
106static int 105static int
107data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx, 106data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
108 const struct GNUNET_PeerIdentity *sender,
109 const struct GNUNET_MessageHeader *message) 107 const struct GNUNET_MessageHeader *message)
110{ 108{
111 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Data callback\n"); 109 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Data callback\n");
diff --git a/src/mesh/test_mesh2_small.c b/src/mesh/test_mesh2_small.c
index ba21a3848..eabffeb11 100644
--- a/src/mesh/test_mesh2_small.c
+++ b/src/mesh/test_mesh2_small.c
@@ -393,14 +393,12 @@ tmt_rdy (void *cls, size_t size, void *buf)
393 * @param cls closure (set from GNUNET_MESH_connect) 393 * @param cls closure (set from GNUNET_MESH_connect)
394 * @param tunnel connection to the other end 394 * @param tunnel connection to the other end
395 * @param tunnel_ctx place to store local state associated with the tunnel 395 * @param tunnel_ctx place to store local state associated with the tunnel
396 * @param sender who sent the message
397 * @param message the actual message 396 * @param message the actual message
398 * @return GNUNET_OK to keep the connection open, 397 * @return GNUNET_OK to keep the connection open,
399 * GNUNET_SYSERR to close it (signal serious error) 398 * GNUNET_SYSERR to close it (signal serious error)
400 */ 399 */
401int 400int
402data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx, 401data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
403 const struct GNUNET_PeerIdentity *sender,
404 const struct GNUNET_MessageHeader *message) 402 const struct GNUNET_MessageHeader *message)
405{ 403{
406 long client = (long) cls; 404 long client = (long) cls;