summaryrefslogtreecommitdiff
path: root/ucimap.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-05 01:24:40 +0200
committerFelix Fietkau <nbd@openwrt.org>2009-09-05 01:24:40 +0200
commitba0d03d0cca59b5b8d30f4844d9eb9ec3e87c69a (patch)
treeedac0f0967972333ae522966e1f49b2a5ed34855 /ucimap.c
parent0a115f989a9eeef8505c0f5dab4ac6a5a6c0af34 (diff)
downloaduci-ba0d03d0cca59b5b8d30f4844d9eb9ec3e87c69a.tar.gz
remove ucimap type->name conversion unless DEBUG is enabled
Diffstat (limited to 'ucimap.c')
-rw-r--r--ucimap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ucimap.c b/ucimap.c
index 4621ebf..3d11c59 100644
--- a/ucimap.c
+++ b/ucimap.c
@@ -482,6 +482,7 @@ ucimap_add_section(struct ucimap_section_data *sd)
list_add_tail(&sd->list, &map->sdata);
}
+#ifdef UCI_DEBUG
static const char *ucimap_type_names[] = {
[UCIMAP_STRING] = "string",
[UCIMAP_INT] = "integer",
@@ -490,7 +491,7 @@ static const char *ucimap_type_names[] = {
[UCIMAP_LIST] = "list",
};
-static inline const char *
+static const char *
ucimap_get_type_name(int type)
{
static char buf[32];
@@ -507,6 +508,7 @@ ucimap_get_type_name(int type)
return name;
}
+#endif
static bool
ucimap_check_optmap_type(struct uci_sectionmap *sm, struct uci_optmap *om)