From: Simon Horman Date: Fri, 12 Oct 2012 00:24:34 +0000 (+0900) Subject: Use enum ofperr in ofputil_decode_flow_removed() X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2725b60074755713b2fdd73559b6d24d5eb7970;p=openvswitch Use enum ofperr in ofputil_decode_flow_removed() The return type of both ofputil_decode_flow_removed() and nx_pull_match() is enum ofperr so it makes sense for error be of that type too. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index c6d979e9..2d81967d 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1939,7 +1939,7 @@ ofputil_decode_flow_removed(struct ofputil_flow_removed *fr, fr->byte_count = ntohll(ofr->byte_count); } else if (raw == OFPRAW_NXT_FLOW_REMOVED) { struct nx_flow_removed *nfr; - int error; + enum ofperr error; nfr = ofpbuf_pull(&b, sizeof *nfr); error = nx_pull_match(&b, ntohs(nfr->match_len), &fr->match,