summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-07-06 10:02:09 -0700
committerBen Pfaff <blp@nicira.com>2012-07-12 14:09:35 -0700
commitd4ce8a49d75f686a6e4437864b207fdae39a9675 (patch)
tree6e394bdaf522eab7b67dd04a18c35cf82b79445f
parentde0f16bc0b39294e524eac88a4ac03a6b25cb1f7 (diff)
downloadopenvswitch-d4ce8a49d75f686a6e4437864b207fdae39a9675.tar.gz
ofproto: Mark some function parameters const.
This allows FOR_EACH_MATCHING_TABLE to be used with const TABLE and OFPROTO arguments. Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--ofproto/ofproto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index a5e1d3916..a710b3d57 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -2296,7 +2296,7 @@ check_table_id(const struct ofproto *ofproto, uint8_t table_id)
}
static struct oftable *
-next_visible_table(struct ofproto *ofproto, uint8_t table_id)
+next_visible_table(const struct ofproto *ofproto, uint8_t table_id)
{
struct oftable *table;
@@ -2312,7 +2312,7 @@ next_visible_table(struct ofproto *ofproto, uint8_t table_id)
}
static struct oftable *
-first_matching_table(struct ofproto *ofproto, uint8_t table_id)
+first_matching_table(const struct ofproto *ofproto, uint8_t table_id)
{
if (table_id == 0xff) {
return next_visible_table(ofproto, 0);
@@ -2324,8 +2324,8 @@ first_matching_table(struct ofproto *ofproto, uint8_t table_id)
}
static struct oftable *
-next_matching_table(struct ofproto *ofproto,
- struct oftable *table, uint8_t table_id)
+next_matching_table(const struct ofproto *ofproto,
+ const struct oftable *table, uint8_t table_id)
{
return (table_id == 0xff
? next_visible_table(ofproto, (table - ofproto->tables) + 1)