[ovs-dev] [PATCH 3/3] ovsdb-client: Move iterator definition to prevent shadowing.
Justin Pettit
jpettit at ovn.org
Tue Jul 12 19:19:22 UTC 2016
This doesn't fix a bug, but is more standard.
Signed-off-by: Justin Pettit <jpettit at ovn.org>
---
ovsdb/ovsdb-client.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c
index 80819a8..25fe903 100644
--- a/ovsdb/ovsdb-client.c
+++ b/ovsdb/ovsdb-client.c
@@ -655,7 +655,6 @@ monitor2_print_table(struct json *table_update2,
const struct ovsdb_column_set *columns = &mt->columns;
struct shash_node *node;
struct table t;
- size_t i;
if (table_update2->type != JSON_OBJECT) {
ovs_error(0, "<table-update> for table %s is not object", table->name);
@@ -668,7 +667,7 @@ monitor2_print_table(struct json *table_update2,
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)) {
--
1.9.1
More information about the dev
mailing list