"enum ofperr" is clearer than "int".

Signed-off-by: Ben Pfaff <b...@nicira.com>
---
 lib/ofp-util.c |    2 +-
 lib/ofp-util.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index e12b68b..79a879f 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -2048,7 +2048,7 @@ ofputil_encode_flow_removed(const struct 
ofputil_flow_removed *fr,
     return msg;
 }
 
-int
+enum ofperr
 ofputil_decode_packet_in(struct ofputil_packet_in *pin,
                          const struct ofp_header *oh)
 {
diff --git a/lib/ofp-util.h b/lib/ofp-util.h
index 6341622..bdde8f1 100644
--- a/lib/ofp-util.h
+++ b/lib/ofp-util.h
@@ -325,8 +325,8 @@ struct ofputil_packet_in {
     struct flow_metadata fmd;   /* Metadata at creation time. */
 };
 
-int ofputil_decode_packet_in(struct ofputil_packet_in *,
-                             const struct ofp_header *);
+enum ofperr ofputil_decode_packet_in(struct ofputil_packet_in *,
+                                     const struct ofp_header *);
 struct ofpbuf *ofputil_encode_packet_in(const struct ofputil_packet_in *,
                                         enum nx_packet_in_format);
 
-- 
1.7.2.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to