-remove dead include
[oweals/gnunet.git] / src / ats / gnunet-service-ats.c
index 4d3ac5679962fc76a80506a60fcbfc52db906839..729f1952b3e7bb1f4dd1e91805051c44cf2091dd 100644 (file)
@@ -26,7 +26,6 @@
  */
 #include "platform.h"
 #include "gnunet_util_lib.h"
-#include "gnunet_ats_service.h"
 #include "gnunet-service-ats.h"
 #include "gnunet-service-ats_addresses.h"
 #include "gnunet-service-ats_performance.h"
  */
 struct GNUNET_STATISTICS_Handle *GSA_stats;
 
+/**
+ * Handle to the ATS server.
+ */
 static struct GNUNET_SERVER_Handle *GSA_server;
 
-struct GAS_Addresses_Handle *GSA_addresses;
+/**
+ * Handle to the address state.
+ */
+static struct GAS_Addresses_Handle *GSA_addresses;
+
 
 /**
  * We have received a `struct ClientStartMessage` from a client.  Find out which
@@ -58,7 +64,10 @@ handle_ats_start (void *cls, struct GNUNET_SERVER_Client *client,
   const struct ClientStartMessage *msg =
       (const struct ClientStartMessage *) message;
   enum StartFlag flag;
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' message\n", "ATS_START");
+
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Received `%s' message\n",
+              "ATS_START");
   flag = ntohl (msg->start_flag);
   switch (flag)
   {
@@ -92,7 +101,8 @@ handle_ats_start (void *cls, struct GNUNET_SERVER_Client *client,
  * @param client handle of the client
  */
 static void
-client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client)
+client_disconnect_handler (void *cls,
+                           struct GNUNET_SERVER_Client *client)
 {
   if (NULL == client)
     return;
@@ -108,13 +118,16 @@ client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client)
  * @param tc unused
  */
 static void
-cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+cleanup_task (void *cls,
+              const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   GAS_addresses_done (GSA_addresses);
   GAS_scheduling_done ();
   GAS_performance_done ();
   GAS_reservations_done ();
-  GNUNET_SERVER_disconnect_notify_cancel (GSA_server, &client_disconnect_handler, NULL);
+  GNUNET_SERVER_disconnect_notify_cancel (GSA_server,
+                                          &client_disconnect_handler,
+                                          NULL);
   if (NULL != GSA_stats)
   {
     GNUNET_STATISTICS_destroy (GSA_stats, GNUNET_NO);
@@ -191,7 +204,8 @@ int
 main (int argc, char *const *argv)
 {
   return (GNUNET_OK ==
-          GNUNET_SERVICE_run (argc, argv, "ats", GNUNET_SERVICE_OPTION_NONE,
+          GNUNET_SERVICE_run (argc, argv, "ats",
+                              GNUNET_SERVICE_OPTION_NONE,
                               &run, NULL)) ? 0 : 1;
 }