connmgr: Mark ofconn_get_protocol() parameter const.
[openvswitch] / ofproto / connmgr.c
index 288580460f94e433103e7a2013e0181c7188bb4b..cd73a942fd8a6617d1196a504fa122b341dc71fb 100644 (file)
@@ -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;
 }