- adding GNUNET_ATS_address_add functionality .. no changes to scheduling API yet
[oweals/gnunet.git] / src / ats / test_ats_mlp_averaging.c
index d9a46f68d8f8756759174a45b7f7f46f7883d056..bf219df225f2c44700589dbede69df3f21bd89e4 100644 (file)
@@ -30,9 +30,6 @@
 #include "gnunet_ats_service.h"
 #include "gnunet-service-ats_addresses_mlp.h"
 
-#define VERBOSE GNUNET_YES
-#define VERBOSE_ARM GNUNET_NO
-
 #define MLP_MAX_EXEC_DURATION   GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 3)
 #define MLP_MAX_ITERATIONS      INT_MAX
 
@@ -52,7 +49,7 @@ create_address (struct ATS_Address *addr, char * plugin, int ats_count, struct G
   addr->mlp_information = NULL;
   addr->next = NULL;
   addr->prev = NULL;
-  addr->plugin = strdup (plugin);
+  addr->plugin = GNUNET_strdup (plugin);
   addr->ats_count = ats_count;
   addr->ats = ats;
 }
@@ -75,7 +72,7 @@ check (void *cls, char *const *args, const char *cfgfile,
 #endif
   struct ATS_Address addr[10];
   struct ATS_PreferedAddress *res[10];
-  struct MLP_information *mlpi;
+  // struct MLP_information *mlpi;
   struct GAS_MLP_SolutionContext ctx;
 
   stats = GNUNET_STATISTICS_create("ats", cfg);
@@ -103,7 +100,7 @@ check (void *cls, char *const *args, const char *cfgfile,
 
   /* Add peer 1 address 1 */
   GAS_mlp_address_update (mlp, addresses, &addr[0]);
-  mlpi = addr[0].mlp_information;
+  // mlpi = addr[0].mlp_information;
 
   GNUNET_assert (mlp != NULL);
   GNUNET_assert (mlp->addr_in_problem == 1);
@@ -162,11 +159,7 @@ main (int argc, char *argv[])
   static char *const argv2[] = { "test_ats_mlp",
     "-c",
     "test_ats_api.conf",
-#if VERBOSE
-    "-L", "DEBUG",
-#else
     "-L", "WARNING",
-#endif
     NULL
   };