[ovs-dev] [ext-260 v3 2/5] ofp-errors: Make ofperr_decode() static.

Ben Pfaff blp at nicira.com
Wed Jun 12 18:35:13 UTC 2013


It had no users outside of ofp-errors.c.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/ofp-errors.c |    2 +-
 lib/ofp-errors.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/ofp-errors.c b/lib/ofp-errors.c
index 74a3358..a141f3f 100644
--- a/lib/ofp-errors.c
+++ b/lib/ofp-errors.c
@@ -72,7 +72,7 @@ ofperr_is_valid(enum ofperr error)
 /* Returns the OFPERR_* value that corresponds to 'type' and 'code' within
  * 'version', or 0 if either no such OFPERR_* value exists or 'version' is
  * unknown. */
-enum ofperr
+static enum ofperr
 ofperr_decode(enum ofp_version version, uint16_t type, uint16_t code)
 {
     const struct ofperr_domain *domain = ofperr_domain_from_version(version);
diff --git a/lib/ofp-errors.h b/lib/ofp-errors.h
index aa3ba50..1f7ea69 100644
--- a/lib/ofp-errors.h
+++ b/lib/ofp-errors.h
@@ -542,7 +542,6 @@ const char *ofperr_domain_get_name(enum ofp_version);
 
 bool ofperr_is_valid(enum ofperr);
 
-enum ofperr ofperr_decode(enum ofp_version, uint16_t type, uint16_t code);
 enum ofperr ofperr_from_name(const char *);
 
 enum ofperr ofperr_decode_msg(const struct ofp_header *,
-- 
1.7.2.5




More information about the dev mailing list