wireguard: add async mode for encryption packets
[vpp.git] / src / vppinfra / test_pool_iterate.c
index 406a2a5..bcbd235 100644 (file)
@@ -32,6 +32,8 @@ main (int argc, char *argv[])
   u32 *tp = 0;
   u32 *junk;
 
+  clib_mem_init (0, 64ULL << 20);
+
   for (i = 0; i < 70; i++)
     {
       pool_get (tp, junk);
@@ -76,8 +78,8 @@ main (int argc, char *argv[])
   while (next != ~0);
 
   /* *INDENT-OFF* */
-  pool_foreach (junk, tp,
-  ({
+  pool_foreach (junk, tp)
+   {
     int is_free;
 
     is_free = pool_is_free_index (tp, junk - tp);
@@ -91,7 +93,7 @@ main (int argc, char *argv[])
           if (i != 1 && i != 65)
             clib_warning ("oops, busy index %d reported free", i);
         }
-  }));
+  }
   /* *INDENT-ON* */
 
   return 0;