X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fconnmgr.c;h=aaf9b3e2cc2c431cb9430e27cd2eb834d52b98d8;hb=f6af6c0e1cec12863d8fc747317c625ff2eef013;hp=5ce77c04c579e97e129c77f4ce3a368cce513f9d;hpb=982697a4d24caa0a3bdaf85db67619338b382e50;p=openvswitch diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 5ce77c04..aaf9b3e2 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -477,7 +477,7 @@ connmgr_free_controller_info(struct shash *info) SHASH_FOR_EACH (node, info) { struct ofproto_controller_info *cinfo = node->data; while (cinfo->pairs.n) { - free((char *) cinfo->pairs.values[--cinfo->pairs.n]); + free(CONST_CAST(char *, cinfo->pairs.values[--cinfo->pairs.n])); } free(cinfo); } @@ -1407,7 +1407,8 @@ schedule_packet_in(struct ofconn *ofconn, struct ofputil_packet_in pin) * while (until a later call to pinsched_run()). */ pinsched_send(ofconn->schedulers[pin.reason == OFPR_NO_MATCH ? 0 : 1], pin.fmd.in_port, - ofputil_encode_packet_in(&pin, ofconn->packet_in_format), + ofputil_encode_packet_in(&pin, ofconn->protocol, + ofconn->packet_in_format), do_send_packet_in, ofconn); }