-fix time assertion introduce in last patch
[oweals/gnunet.git] / src / util / test_container_slist.c
index 1b63d3dbce1213294bdbc6cbd0a6d414a5781bf3..443d5c7c5113d2c2cd7784bb22fdb2fdc84db42e 100644 (file)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 int
 main (int argc, char *argv[])
@@ -137,7 +136,7 @@ main (int argc, char *argv[])
 
   for (i = 0; i < 100; i++)
   {
-    ip = GNUNET_malloc (sizeof (int));
+    ip = GNUNET_new (int);
     *ip = i;
     GNUNET_CONTAINER_slist_add (l, GNUNET_CONTAINER_SLIST_DISPOSITION_DYNAMIC,
                                 ip, sizeof (int));