From 08f8e2a63dd400e10f9233fdf31dc8075312803e Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 4 Dec 2012 13:45:39 +0000 Subject: restructure --- src/ats/gnunet-service-ats.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ats/gnunet-service-ats.c') diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c index e9a11a8b8..915a18c2a 100644 --- a/src/ats/gnunet-service-ats.c +++ b/src/ats/gnunet-service-ats.c @@ -41,6 +41,7 @@ struct GNUNET_STATISTICS_Handle *GSA_stats; static struct GNUNET_SERVER_Handle *GSA_server; +struct GAS_Addresses_Handle *GSA_addresses; /** * We have received a 'ClientStartMessage' from a client. Find out which @@ -109,7 +110,7 @@ client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client) static void cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { - GAS_addresses_done (); + GAS_addresses_done (GSA_addresses); GAS_scheduling_done (); GAS_performance_done (); GAS_reservations_done (); @@ -168,7 +169,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, GAS_reservations_init (); GAS_performance_init (server); GAS_scheduling_init (server); - GAS_addresses_init (cfg, GSA_stats); + GSA_addresses = GAS_addresses_init (cfg, GSA_stats); GNUNET_SERVER_disconnect_notify (server, &client_disconnect_handler, NULL); GNUNET_SERVER_add_handlers (server, handlers); GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, -- cgit v1.2.3