From dfbec087e7c50e9070aa5855152700fffc44a826 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 12 Feb 2013 23:18:30 -0800 Subject: [PATCH] ofp-errors: Make ofperr_decode() static. It had no users outside of ofp-errors.c. Signed-off-by: Ben Pfaff --- lib/ofp-errors.c | 2 +- lib/ofp-errors.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ofp-errors.c b/lib/ofp-errors.c index 74a3358e0..a141f3f51 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 aa3ba50a5..1f7ea69ba 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 *, -- 2.43.0