projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add dynamically generated section names
[project/uci.git]
/
cli.c
diff --git
a/cli.c
b/cli.c
index
23386c1
..
322d170
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-35,6
+35,7
@@
static void uci_show_section(struct uci_section *p)
cname = p->config->name;
sname = p->name;
cname = p->config->name;
sname = p->name;
+ printf("%s.%s=%s\n", cname, sname, p->type);
uci_foreach_entry(option, &p->options, o) {
printf("%s.%s.%s=%s\n", cname, sname, o->name, o->value);
}
uci_foreach_entry(option, &p->options, o) {
printf("%s.%s.%s=%s\n", cname, sname, o->name, o->value);
}
@@
-59,7
+60,7
@@
static void uci_show_file(const char *name)
static int uci_show(int argc, char **argv)
{
static int uci_show(int argc, char **argv)
{
- char **configs = uci_list_configs(
ctx
);
+ char **configs = uci_list_configs();
char **p;
if (!configs)
char **p;
if (!configs)