diff options
author | Ben Pfaff <blp@ovn.org> | 2016-08-24 23:10:15 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-10-19 11:39:22 -0700 |
commit | 012d37621ae0ab2447578c234f2360733f41058e (patch) | |
tree | 5738f6d8e5d3281705bb1ea312a2e7746132e6b7 | |
parent | c1ac745c3f694ac18a711c326410c8a87695a0b6 (diff) | |
download | openvswitch-012d37621ae0ab2447578c234f2360733f41058e.tar.gz |
ovsdb-idl: Mark ovsdb_idl_get_row_arc() parameter const.
This function doesn't modify its 'dst_table' parameter, so it might as well
be marked const.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
-rw-r--r-- | lib/ovsdb-idl-provider.h | 2 | ||||
-rw-r--r-- | lib/ovsdb-idl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ovsdb-idl-provider.h b/lib/ovsdb-idl-provider.h index 1e375de11..3104f2c77 100644 --- a/lib/ovsdb-idl-provider.h +++ b/lib/ovsdb-idl-provider.h @@ -129,7 +129,7 @@ struct ovsdb_idl_class { struct ovsdb_idl_row *ovsdb_idl_get_row_arc( struct ovsdb_idl_row *src, - struct ovsdb_idl_table_class *dst_table, + const struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid); void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index e1df634ac..b4d3c424e 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -2041,7 +2041,7 @@ ovsdb_idl_table_from_class(const struct ovsdb_idl *idl, /* Called by ovsdb-idlc generated code. */ struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, - struct ovsdb_idl_table_class *dst_table_class, + const struct ovsdb_idl_table_class *dst_table_class, const struct uuid *dst_uuid) { struct ovsdb_idl *idl = src->table->idl; |