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/datacache/datacache.c | |
parent | 7217c601ad30760872823193d62307e7a335d226 (diff) | |
download | gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip |
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/datacache/datacache.c')
-rw-r--r-- | src/datacache/datacache.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c index d2aa2616a..9bb0f14b9 100644 --- a/src/datacache/datacache.c +++ b/src/datacache/datacache.c | |||
@@ -116,14 +116,12 @@ env_delete_notify (void *cls, | |||
116 | /** | 116 | /** |
117 | * Create a data cache. | 117 | * Create a data cache. |
118 | * | 118 | * |
119 | * @param sched scheduler to use | ||
120 | * @param cfg configuration to use | 119 | * @param cfg configuration to use |
121 | * @param section section in the configuration that contains our options | 120 | * @param section section in the configuration that contains our options |
122 | * @return handle to use to access the service | 121 | * @return handle to use to access the service |
123 | */ | 122 | */ |
124 | struct GNUNET_DATACACHE_Handle * | 123 | struct GNUNET_DATACACHE_Handle * |
125 | GNUNET_DATACACHE_create (struct GNUNET_SCHEDULER_Handle *sched, | 124 | GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, |
126 | const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
127 | const char *section) | 125 | const char *section) |
128 | { | 126 | { |
129 | unsigned int bf_size; | 127 | unsigned int bf_size; |
@@ -167,11 +165,9 @@ GNUNET_DATACACHE_create (struct GNUNET_SCHEDULER_Handle *sched, | |||
167 | { | 165 | { |
168 | ret->filter = GNUNET_CONTAINER_bloomfilter_load (NULL, bf_size, 5); /* approx. 3% false positives at max use */ | 166 | ret->filter = GNUNET_CONTAINER_bloomfilter_load (NULL, bf_size, 5); /* approx. 3% false positives at max use */ |
169 | } | 167 | } |
170 | ret->stats = GNUNET_STATISTICS_create (sched, | 168 | ret->stats = GNUNET_STATISTICS_create ("datacache", |
171 | "datacache", | ||
172 | cfg); | 169 | cfg); |
173 | ret->section = GNUNET_strdup (section); | 170 | ret->section = GNUNET_strdup (section); |
174 | ret->env.sched = sched; | ||
175 | ret->env.cfg = cfg; | 171 | ret->env.cfg = cfg; |
176 | ret->env.delete_notify = &env_delete_notify; | 172 | ret->env.delete_notify = &env_delete_notify; |
177 | ret->env.section = ret->section; | 173 | ret->env.section = ret->section; |