aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_api.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-08-30 09:41:21 +0000
committerBart Polot <bart@net.in.tum.de>2011-08-30 09:41:21 +0000
commitee8c4976c44abcf0e6181c56494a380cea4474b4 (patch)
tree2e8a8974e639ce511024c98ec9a865bd51a7d81e /src/mesh/test_mesh_api.c
parent76e9a6b5cfd602b6c3eeadec11dd3811fddcfb90 (diff)
downloadgnunet-ee8c4976c44abcf0e6181c56494a380cea4474b4.tar.gz
gnunet-ee8c4976c44abcf0e6181c56494a380cea4474b4.zip
Indent
Diffstat (limited to 'src/mesh/test_mesh_api.c')
-rw-r--r--src/mesh/test_mesh_api.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mesh/test_mesh_api.c b/src/mesh/test_mesh_api.c
index 8e7bca807..c60b0314e 100644
--- a/src/mesh/test_mesh_api.c
+++ b/src/mesh/test_mesh_api.c
@@ -99,8 +99,9 @@ static void
99test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 99test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
100{ 100{
101 struct GNUNET_CONFIGURATION_Handle *cfg = cls; 101 struct GNUNET_CONFIGURATION_Handle *cfg = cls;
102 static const GNUNET_MESH_ApplicationType app[] = { 1, 2, 3, 4, 5, 6, 7, 8, 0}; 102 static const GNUNET_MESH_ApplicationType app[] =
103 struct GNUNET_MESH_Tunnel *t; 103 { 1, 2, 3, 4, 5, 6, 7, 8, 0 };
104 struct GNUNET_MESH_Tunnel *t;
104 105
105 test_task = (GNUNET_SCHEDULER_TaskIdentifier) 0; 106 test_task = (GNUNET_SCHEDULER_TaskIdentifier) 0;
106 mesh = GNUNET_MESH_connect (cfg, NULL, NULL, handlers, app); 107 mesh = GNUNET_MESH_connect (cfg, NULL, NULL, handlers, app);
@@ -114,12 +115,9 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
114 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "YAY! CONNECTED TO MESH :D\n"); 115 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "YAY! CONNECTED TO MESH :D\n");
115 } 116 }
116 117
117 t = GNUNET_MESH_tunnel_create(mesh, 118 t = GNUNET_MESH_tunnel_create (mesh, NULL, NULL, NULL);
118 NULL,
119 NULL,
120 NULL);
121 119
122 GNUNET_MESH_tunnel_destroy(t); 120 GNUNET_MESH_tunnel_destroy (t);
123 121
124 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 122 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
125 (GNUNET_TIME_UNIT_SECONDS, 5), &do_shutdown, 123 (GNUNET_TIME_UNIT_SECONDS, 5), &do_shutdown,
@@ -151,7 +149,7 @@ run (void *cls, char *const *args, const char *cfgfile,
151 (GNUNET_TIME_UNIT_SECONDS, 20), &do_abort, 149 (GNUNET_TIME_UNIT_SECONDS, 20), &do_abort,
152 NULL); 150 NULL);
153 151
154 test_task = GNUNET_SCHEDULER_add_now (&test, (void *)cfg); 152 test_task = GNUNET_SCHEDULER_add_now (&test, (void *) cfg);
155 153
156} 154}
157 155