Skip to content

Commit

Permalink
ovsdb-idl: Mark ovsdb_idl_get_row_arc() parameter const.
Browse files Browse the repository at this point in the history
This function doesn't modify its 'dst_table' parameter, so it might as well
be marked const.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Andy Zhou <[email protected]>
  • Loading branch information
blp committed Oct 19, 2016
1 parent c1ac745 commit 012d376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ovsdb-idl-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *,
Expand Down
2 changes: 1 addition & 1 deletion lib/ovsdb-idl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 012d376

Please sign in to comment.