2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

ovsdb-idl: Avoid class declaration.

In C++, 'class' is a keyword. If this is used as the name for a field,
then C++ compilers can get confused about the context and fail to
compile references to such fields. Rename the field to 'class_' to
avoid this issue.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Joe Stringer
2017-08-11 11:06:44 -07:00
parent f269840743
commit 3eb1423353
4 changed files with 82 additions and 82 deletions

View File

@@ -635,7 +635,7 @@ check_mutable(const struct ovsdb_idl_row *row,
{
if (!ovsdb_idl_is_mutable(row, column)) {
ctl_fatal("cannot modify read-only column %s in table %s",
column->name, row->table->class->name);
column->name, row->table->class_->name);
}
}
@@ -1715,7 +1715,7 @@ cmd_show_find_table_by_row(const struct ovsdb_idl_row *row)
const struct cmd_show_table *show;
for (show = cmd_show_tables; show->table; show++) {
if (show->table == row->table->class) {
if (show->table == row->table->class_) {
return show;
}
}