aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_speedup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_speedup.c')
-rw-r--r--src/util/test_speedup.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/util/test_speedup.c b/src/util/test_speedup.c
index 5d46e3127..b9f2cfb4d 100644
--- a/src/util/test_speedup.c
+++ b/src/util/test_speedup.c
@@ -53,7 +53,9 @@ run (void *cls)
53 fprintf (stderr, "..%u", cycles); 53 fprintf (stderr, "..%u", cycles);
54 if (cycles <= 5) 54 if (cycles <= 5)
55 { 55 {
56 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &run, NULL); 56 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
57 &run,
58 NULL);
57 return; 59 return;
58 } 60 }
59 end = GNUNET_TIME_absolute_get(); 61 end = GNUNET_TIME_absolute_get();
@@ -66,21 +68,22 @@ run (void *cls)
66 * 68 *
67 */ 69 */
68static void 70static void
69check (void *cls, char *const *args, 71check (void *cls,
72 char *const *args,
70 const char *cfgfile, 73 const char *cfgfile,
71 const struct GNUNET_CONFIGURATION_Handle * 74 const struct GNUNET_CONFIGURATION_Handle *cfg)
72 cfg)
73{ 75{
74 fprintf (stderr, "0"); 76 fprintf (stderr, "0");
75 fflush(stdout); 77 fflush (stdout);
76 GNUNET_SCHEDULER_add_now(&run, NULL); 78 GNUNET_SCHEDULER_add_now (&run, NULL);
77} 79}
78 80
79 81
80int 82int
81main (int argc, char *argv[]) 83main (int argc, char *argv[])
82{ 84{
83 static char *const argvn[] = { "test-speedup", 85 static char *const argvn[] = {
86 "test-speedup",
84 "-c", "test_speedup_data.conf", 87 "-c", "test_speedup_data.conf",
85 NULL 88 NULL
86 }; 89 };