git.droids-corp.org
/
libcmdline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8613958
)
genconf: enable long and short display of nodes
author
Olivier Matz
<zer0@droids-corp.org>
Fri, 24 Dec 2010 11:46:36 +0000
(12:46 +0100)
committer
Olivier Matz
<zer0@droids-corp.org>
Sun, 2 Jan 2011 20:53:15 +0000
(21:53 +0100)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/genconf/commands.c
patch
|
blob
|
history
diff --git
a/src/genconf/commands.c
b/src/genconf/commands.c
index
7978e70
..
260502c
100644
(file)
--- a/
src/genconf/commands.c
+++ b/
src/genconf/commands.c
@@
-110,7
+110,7
@@
static void cmd_ls_node_parsed(void *parsed_result,
struct confnode *n = res->node;
while (n) {
-
//display_one_confnode
(n);
+
confnode_display_short
(n);
n = TAILQ_NEXT(n, user_next);
}
}
@@
-506,7
+506,7
@@
static void cmd_show_node_parsed(void *parsed_result,
details = 1;
while (n) {
-
//dump_one_confnode
(n);
+
confnode_display_long
(n);
n = TAILQ_NEXT(n, user_next);
}
}