]> git.proxmox.com Git - mirror_ovs.git/blobdiff - tests/test-ovsdb.c
list: Rename all functions in list.h with ovs_ prefix.
[mirror_ovs.git] / tests / test-ovsdb.c
index 1fbe378f22b5e7d4b9f49f7413e24bbd78d6303c..e6af72982992f80f078c4d3849dc2c4a8ff91ba7 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdlib.h>
 
 #include "command-line.h"
-#include "dynamic-string.h"
+#include "openvswitch/dynamic-string.h"
 #include "json.h"
 #include "jsonrpc.h"
 #include "ovsdb-data.h"
@@ -1296,6 +1296,10 @@ do_query_distinct(struct ovs_cmdl_context *ctx)
     }
     json_destroy(json);
 
+    for (i = 0; i < n_classes; i++) {
+        ovsdb_row_destroy(classes[i].example);
+    }
+
     ovsdb_table_destroy(table); /* Also destroys 'ts'. */
 
     free(rows);
@@ -1411,8 +1415,8 @@ do_trigger(struct ovs_cmdl_context *ctx)
         }
 
         ovsdb_trigger_run(db, now);
-        while (!list_is_empty(&session.completions)) {
-            do_trigger_dump(CONTAINER_OF(list_pop_front(&session.completions),
+        while (!ovs_list_is_empty(&session.completions)) {
+            do_trigger_dump(CONTAINER_OF(ovs_list_pop_front(&session.completions),
                                          struct test_trigger, trigger.node),
                             now, "delayed");
         }