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/fs/test_fs_start_stop.c | |
parent | 7217c601ad30760872823193d62307e7a335d226 (diff) | |
download | gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip |
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/fs/test_fs_start_stop.c')
-rw-r--r-- | src/fs/test_fs_start_stop.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fs/test_fs_start_stop.c b/src/fs/test_fs_start_stop.c index f64596061..71043bf36 100644 --- a/src/fs/test_fs_start_stop.c +++ b/src/fs/test_fs_start_stop.c | |||
@@ -33,8 +33,6 @@ | |||
33 | 33 | ||
34 | #define START_ARM GNUNET_YES | 34 | #define START_ARM GNUNET_YES |
35 | 35 | ||
36 | static struct GNUNET_SCHEDULER_Handle *sched; | ||
37 | |||
38 | static struct PeerContext p1; | 36 | static struct PeerContext p1; |
39 | 37 | ||
40 | struct PeerContext | 38 | struct PeerContext |
@@ -89,17 +87,14 @@ stop_arm (struct PeerContext *p) | |||
89 | 87 | ||
90 | static void | 88 | static void |
91 | run (void *cls, | 89 | run (void *cls, |
92 | struct GNUNET_SCHEDULER_Handle *s, | ||
93 | char *const *args, | 90 | char *const *args, |
94 | const char *cfgfile, | 91 | const char *cfgfile, |
95 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 92 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
96 | { | 93 | { |
97 | struct GNUNET_FS_Handle *fs; | 94 | struct GNUNET_FS_Handle *fs; |
98 | 95 | ||
99 | sched = s; | ||
100 | setup_peer (&p1, "test_fs_data.conf"); | 96 | setup_peer (&p1, "test_fs_data.conf"); |
101 | fs = GNUNET_FS_start (sched, | 97 | fs = GNUNET_FS_start (cfg, |
102 | cfg, | ||
103 | "test-fs-start-stop", | 98 | "test-fs-start-stop", |
104 | &progress_cb, | 99 | &progress_cb, |
105 | NULL, | 100 | NULL, |