projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a115f9
)
remove ucimap type->name conversion unless DEBUG is enabled
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 Sep 2009 23:24:40 +0000
(
01:24
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 Sep 2009 23:24:40 +0000
(
01:24
+0200)
ucimap.c
patch
|
blob
|
history
diff --git
a/ucimap.c
b/ucimap.c
index 4621ebf816c759b89ecf291fee65c6d04dd7a589..3d11c590270a040c43a010a8baeb1a17cb381b1b 100644
(file)
--- 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)