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

ovsdb-idl: Avoid mutable type specifier.

In C++, 'mutable' 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 'is_mutable' 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:45 -07:00
parent 3eb1423353
commit c6e5d064a4
3 changed files with 3 additions and 3 deletions

View File

@@ -2871,7 +2871,7 @@ bool
ovsdb_idl_is_mutable(const struct ovsdb_idl_row *row,
const struct ovsdb_idl_column *column)
{
return column->mutable || (row->new && !row->old);
return column->is_mutable || (row->new && !row->old);
}
/* Returns false if 'row' was obtained from the IDL, true if it was initialized