From: Ben Pfaff Date: Mon, 19 Nov 2012 17:50:44 +0000 (-0800) Subject: connmgr: Mark ofconn_get_protocol() parameter const. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff_plain;h=e3d560dbe9e2d02184c53eb6fe25fd0e1f6fec74 connmgr: Mark ofconn_get_protocol() parameter const. Signed-off-by: Ben Pfaff --- diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 28858046..cd73a942 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -842,7 +842,7 @@ ofconn_get_invalid_ttl_to_controller(struct ofconn *ofconn) * * The default, if no other format has been set, is OFPUTIL_P_OF10_STD. */ enum ofputil_protocol -ofconn_get_protocol(struct ofconn *ofconn) +ofconn_get_protocol(const struct ofconn *ofconn) { return ofconn->protocol; } diff --git a/ofproto/connmgr.h b/ofproto/connmgr.h index 6d6842d5..4122bc1a 100644 --- a/ofproto/connmgr.h +++ b/ofproto/connmgr.h @@ -99,7 +99,7 @@ enum ofconn_type ofconn_get_type(const struct ofconn *); enum nx_role ofconn_get_role(const struct ofconn *); void ofconn_set_role(struct ofconn *, enum nx_role); -enum ofputil_protocol ofconn_get_protocol(struct ofconn *); +enum ofputil_protocol ofconn_get_protocol(const struct ofconn *); void ofconn_set_protocol(struct ofconn *, enum ofputil_protocol); enum nx_packet_in_format ofconn_get_packet_in_format(struct ofconn *);