-revert of address_bw addition
[oweals/gnunet.git] / src / ats / test_ats_api_bandwidth_consumption.c
index 5b1b2df45886338afbb3537020808188e2c34bda..493323657e07142eb7760d2d3ec32afc600307b9 100644 (file)
@@ -26,7 +26,7 @@
  */
 #include "platform.h"
 #include "gnunet_ats_service.h"
-#include "gnunet_testing_lib-new.h"
+#include "gnunet_testing_lib.h"
 #include "ats.h"
 
 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
@@ -174,7 +174,7 @@ address_suggest_cb (void *cls, const struct GNUNET_PeerIdentity *peer,
 
 
 static void
-run (void *cls, 
+run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg,
      struct GNUNET_TESTING_Peer *peer)
 {
@@ -189,8 +189,8 @@ run (void *cls,
     end ();
     return;
   }
-  p = GNUNET_malloc (sizeof (struct PeerContext));
-  addr = GNUNET_malloc (sizeof (struct Address));
+  p = GNUNET_new (struct PeerContext);
+  addr = GNUNET_new (struct Address);
 
   atp = GNUNET_ATS_performance_init (cfg, &performance_cb, NULL);
   if (atp == NULL)