This doesn't fix a bug, but is more standard.
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
const struct ovsdb_column_set *columns = &mt->columns;
struct shash_node *node;
struct table t;
const struct ovsdb_column_set *columns = &mt->columns;
struct shash_node *node;
struct table t;
if (table_update2->type != JSON_OBJECT) {
ovs_error(0, "<table-update> for table %s is not object", table->name);
if (table_update2->type != JSON_OBJECT) {
ovs_error(0, "<table-update> for table %s is not object", table->name);
table_add_column(&t, "row");
table_add_column(&t, "action");
table_add_column(&t, "row");
table_add_column(&t, "action");
- for (i = 0; i < columns->n_columns; i++) {
+ for (size_t i = 0; i < columns->n_columns; i++) {
table_add_column(&t, "%s", columns->columns[i]->name);
}
SHASH_FOR_EACH (node, json_object(table_update2)) {
table_add_column(&t, "%s", columns->columns[i]->name);
}
SHASH_FOR_EACH (node, json_object(table_update2)) {