diff options
Diffstat (limited to 'src/fragmentation/test_fragmentation.c')
-rw-r--r-- | src/fragmentation/test_fragmentation.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/fragmentation/test_fragmentation.c b/src/fragmentation/test_fragmentation.c index b534a134e..b04b28385 100644 --- a/src/fragmentation/test_fragmentation.c +++ b/src/fragmentation/test_fragmentation.c | |||
@@ -183,9 +183,8 @@ proc_frac (void *cls, const struct GNUNET_MessageHeader *hdr) | |||
183 | * Main function run with scheduler. | 183 | * Main function run with scheduler. |
184 | */ | 184 | */ |
185 | static void | 185 | static void |
186 | run (void *cls, | 186 | run (void *cls, char *const *args, const char *cfgfile, |
187 | char *const *args, | 187 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
188 | const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
189 | { | 188 | { |
190 | unsigned int i; | 189 | unsigned int i; |
191 | struct GNUNET_MessageHeader *msg; | 190 | struct GNUNET_MessageHeader *msg; |
@@ -202,10 +201,9 @@ run (void *cls, | |||
202 | msg->size = | 201 | msg->size = |
203 | htons (sizeof (struct GNUNET_MessageHeader) + (17 * i) % (32 * 1024)); | 202 | htons (sizeof (struct GNUNET_MessageHeader) + (17 * i) % (32 * 1024)); |
204 | frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */ , | 203 | frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */ , |
205 | MTU, | 204 | MTU, &trackers[i], |
206 | &trackers[i], | 205 | GNUNET_TIME_UNIT_SECONDS, msg, |
207 | GNUNET_TIME_UNIT_SECONDS, | 206 | &proc_frac, &frags[i]); |
208 | msg, &proc_frac, &frags[i]); | ||
209 | } | 207 | } |
210 | } | 208 | } |
211 | 209 | ||