summaryrefslogtreecommitdiff
path: root/src/peerinfo/perf_peerinfo_api.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/peerinfo/perf_peerinfo_api.c
parent7217c601ad30760872823193d62307e7a335d226 (diff)
downloadgnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz
gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/peerinfo/perf_peerinfo_api.c')
-rwxr-xr-xsrc/peerinfo/perf_peerinfo_api.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c
index 2c3d54109..1c2f81d76 100755
--- a/src/peerinfo/perf_peerinfo_api.c
+++ b/src/peerinfo/perf_peerinfo_api.c
@@ -37,8 +37,6 @@
37 37
38#define NUM_REQUESTS 5000 38#define NUM_REQUESTS 5000
39 39
40static struct GNUNET_SCHEDULER_Handle *sched;
41
42static const struct GNUNET_CONFIGURATION_Handle *cfg; 40static const struct GNUNET_CONFIGURATION_Handle *cfg;
43 41
44static struct GNUNET_PEERINFO_IteratorContext *ic[NUM_REQUESTS]; 42static struct GNUNET_PEERINFO_IteratorContext *ic[NUM_REQUESTS];
@@ -132,15 +130,13 @@ process (void *cls,
132 130
133static void 131static void
134run (void *cls, 132run (void *cls,
135 struct GNUNET_SCHEDULER_Handle *s,
136 char *const *args, 133 char *const *args,
137 const char *cfgfile, 134 const char *cfgfile,
138 const struct GNUNET_CONFIGURATION_Handle *c) 135 const struct GNUNET_CONFIGURATION_Handle *c)
139{ 136{
140 size_t i; 137 size_t i;
141 sched = s;
142 cfg = c; 138 cfg = c;
143 h = GNUNET_PEERINFO_connect (sched, cfg); 139 h = GNUNET_PEERINFO_connect (cfg);
144 GNUNET_assert (h != NULL); 140 GNUNET_assert (h != NULL);
145 for (i = 0; i < NUM_REQUESTS; i++) 141 for (i = 0; i < NUM_REQUESTS; i++)
146 { 142 {