aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport_udp.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-05 18:21:50 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-05 18:21:50 +0000
commit75a33a1499cf60ea4364c9aa673816629a6c1413 (patch)
tree0620da4312bb04de4d7b65074fdd3b0c3dd6cc0e /src/transport/test_plugin_transport_udp.c
parent7217c601ad30760872823193d62307e7a335d226 (diff)
downloadgnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz
gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/transport/test_plugin_transport_udp.c')
-rw-r--r--src/transport/test_plugin_transport_udp.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/transport/test_plugin_transport_udp.c b/src/transport/test_plugin_transport_udp.c
index aaa6c18d3..f297a05c1 100644
--- a/src/transport/test_plugin_transport_udp.c
+++ b/src/transport/test_plugin_transport_udp.c
@@ -61,11 +61,6 @@ static struct GNUNET_PeerIdentity my_identity;
61static struct GNUNET_CRYPTO_RsaPrivateKey *my_private_key; 61static struct GNUNET_CRYPTO_RsaPrivateKey *my_private_key;
62 62
63/** 63/**
64 * Our scheduler.
65 */
66struct GNUNET_SCHEDULER_Handle *sched;
67
68/**
69 * Our configuration. 64 * Our configuration.
70 */ 65 */
71const struct GNUNET_CONFIGURATION_Handle *cfg; 66const struct GNUNET_CONFIGURATION_Handle *cfg;
@@ -162,7 +157,6 @@ static void
162setup_plugin_environment () 157setup_plugin_environment ()
163{ 158{
164 env.cfg = cfg; 159 env.cfg = cfg;
165 env.sched = sched;
166 env.my_identity = &my_identity; 160 env.my_identity = &my_identity;
167 env.cls = &env; 161 env.cls = &env;
168 env.receive = &receive; 162 env.receive = &receive;
@@ -174,12 +168,10 @@ setup_plugin_environment ()
174 * Runs the test. 168 * Runs the test.
175 * 169 *
176 * @param cls closure 170 * @param cls closure
177 * @param s scheduler to use
178 * @param c configuration to use 171 * @param c configuration to use
179 */ 172 */
180static void 173static void
181run (void *cls, 174run (void *cls,
182 struct GNUNET_SCHEDULER_Handle *s,
183 char *const *args, 175 char *const *args,
184 const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c) 176 const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c)
185{ 177{
@@ -187,7 +179,6 @@ run (void *cls,
187 char *keyfile; 179 char *keyfile;
188 char *libname; 180 char *libname;
189 181
190 sched = s;
191 cfg = c; 182 cfg = c;
192 /* parse configuration */ 183 /* parse configuration */
193 if ((GNUNET_OK != 184 if ((GNUNET_OK !=