diff options
Diffstat (limited to 'src/testbed/gnunet-daemon-latency-logger.c')
-rw-r--r-- | src/testbed/gnunet-daemon-latency-logger.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/testbed/gnunet-daemon-latency-logger.c b/src/testbed/gnunet-daemon-latency-logger.c index 9652721a1..b2c7b1043 100644 --- a/src/testbed/gnunet-daemon-latency-logger.c +++ b/src/testbed/gnunet-daemon-latency-logger.c | |||
@@ -89,17 +89,12 @@ static struct sqlite3 *db; | |||
89 | /** | 89 | /** |
90 | * Handle to the ATS performance subsystem | 90 | * Handle to the ATS performance subsystem |
91 | */ | 91 | */ |
92 | struct GNUNET_ATS_PerformanceHandle *ats; | 92 | static struct GNUNET_ATS_PerformanceHandle *ats; |
93 | 93 | ||
94 | /** | 94 | /** |
95 | * Prepared statement for inserting values into the database table | 95 | * Prepared statement for inserting values into the database table |
96 | */ | 96 | */ |
97 | struct sqlite3_stmt *stmt_insert; | 97 | static struct sqlite3_stmt *stmt_insert; |
98 | |||
99 | /** | ||
100 | * Shutdown task identifier | ||
101 | */ | ||
102 | struct GNUNET_SCHEDULER_Task * shutdown_task; | ||
103 | 98 | ||
104 | 99 | ||
105 | /** | 100 | /** |
@@ -136,7 +131,6 @@ free_iterator (void *cls, | |||
136 | static void | 131 | static void |
137 | do_shutdown (void *cls) | 132 | do_shutdown (void *cls) |
138 | { | 133 | { |
139 | shutdown_task = NULL; | ||
140 | GNUNET_ATS_performance_done (ats); | 134 | GNUNET_ATS_performance_done (ats); |
141 | ats = NULL; | 135 | ats = NULL; |
142 | if (NULL != stmt_insert) | 136 | if (NULL != stmt_insert) |
@@ -298,8 +292,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
298 | dbfile = NULL; | 292 | dbfile = NULL; |
299 | ats = GNUNET_ATS_performance_init (c, &addr_info_cb, NULL); | 293 | ats = GNUNET_ATS_performance_init (c, &addr_info_cb, NULL); |
300 | map = GNUNET_CONTAINER_multipeermap_create (30, GNUNET_YES); | 294 | map = GNUNET_CONTAINER_multipeermap_create (30, GNUNET_YES); |
301 | shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 295 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, NULL); |
302 | &do_shutdown, NULL); | ||
303 | } | 296 | } |
304 | 297 | ||
305 | 298 | ||