diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-11-05 18:21:50 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-11-05 18:21:50 +0000 |
commit | 75a33a1499cf60ea4364c9aa673816629a6c1413 (patch) | |
tree | 0620da4312bb04de4d7b65074fdd3b0c3dd6cc0e /src/peerinfo/test_peerinfo_api.c | |
parent | 7217c601ad30760872823193d62307e7a335d226 (diff) | |
download | gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip |
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/peerinfo/test_peerinfo_api.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index eae448bbf..fdd0dc460 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c | |||
@@ -36,8 +36,6 @@ | |||
36 | #include "gnunet_time_lib.h" | 36 | #include "gnunet_time_lib.h" |
37 | #include "peerinfo.h" | 37 | #include "peerinfo.h" |
38 | 38 | ||
39 | static struct GNUNET_SCHEDULER_Handle *sched; | ||
40 | |||
41 | static const struct GNUNET_CONFIGURATION_Handle *cfg; | 39 | static const struct GNUNET_CONFIGURATION_Handle *cfg; |
42 | 40 | ||
43 | static struct GNUNET_PEERINFO_IteratorContext *ic; | 41 | static struct GNUNET_PEERINFO_IteratorContext *ic; |
@@ -143,14 +141,12 @@ process (void *cls, | |||
143 | 141 | ||
144 | static void | 142 | static void |
145 | run (void *cls, | 143 | run (void *cls, |
146 | struct GNUNET_SCHEDULER_Handle *s, | ||
147 | char *const *args, | 144 | char *const *args, |
148 | const char *cfgfile, | 145 | const char *cfgfile, |
149 | const struct GNUNET_CONFIGURATION_Handle *c) | 146 | const struct GNUNET_CONFIGURATION_Handle *c) |
150 | { | 147 | { |
151 | sched = s; | ||
152 | cfg = c; | 148 | cfg = c; |
153 | h = GNUNET_PEERINFO_connect (sched, cfg); | 149 | h = GNUNET_PEERINFO_connect (cfg); |
154 | GNUNET_assert (h != NULL); | 150 | GNUNET_assert (h != NULL); |
155 | add_peer (); | 151 | add_peer (); |
156 | ic = GNUNET_PEERINFO_iterate (h, | 152 | ic = GNUNET_PEERINFO_iterate (h, |