[ovs-dev] [PATCH 10/11] Use enum ofperr in ofputil_decode_flow_removed()

Simon Horman horms at verge.net.au
Thu Sep 20 04:10:49 UTC 2012


The return type of both ofputil_decode_flow_removed() and
nx_pull_match() so it makes sense for error be of that type too.

Signed-off-by: Simon Horman <horms at verge.net.au>

---

v14
* No change

v13
* No change

v12
* No change

v11
* Initial post
---
 lib/ofp-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index a1752a4..265f943 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -1940,7 +1940,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,
-- 
1.7.10.4




More information about the dev mailing list