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:
4e84906
)
genconf: "comment" nodes don't have name, add the flag
author
Olivier Matz
<zer0@droids-corp.org>
Sun, 8 May 2011 16:00:01 +0000
(18:00 +0200)
committer
Olivier Matz
<zer0@droids-corp.org>
Sun, 8 May 2011 16:00:01 +0000
(18:00 +0200)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/genconf/confnode_comment.c
patch
|
blob
|
history
diff --git
a/src/genconf/confnode_comment.c
b/src/genconf/confnode_comment.c
index
36607cc
..
95eaccd
100644
(file)
--- a/
src/genconf/confnode_comment.c
+++ b/
src/genconf/confnode_comment.c
@@
-76,7
+76,8
@@
static int confnode_comment_new(struct confnode *n, const struct line *line)
snprintf(n->prompt, sizeof(n->prompt), "%s", tok->str);
n->ops = &confnode_comment.ops;
n->flags = CONFNODE_F_NO_SET_DEFAULT |
- CONFNODE_F_NO_SET_PROMPT;
+ CONFNODE_F_NO_SET_PROMPT |
+ CONFNODE_F_NO_NAME;
return 0;
}