summaryrefslogtreecommitdiffstats
path: root/discover/kboot-parser.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-18 16:09:16 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-18 16:09:16 -0700
commit60384121c27eb92c25955a06e8dea088290f938b (patch)
tree7d0687b0ffc4b91320979280cce42d1f3116de6d /discover/kboot-parser.c
parent59c55e2b636c0f877d36dbd158ede80a6dbf7ae3 (diff)
downloadtalos-petitboot-60384121c27eb92c25955a06e8dea088290f938b.zip
talos-petitboot-60384121c27eb92c25955a06e8dea088290f938b.tar.gz
Refactor parser routine conf_get_param_pair()
Refactor conf_get_param_pair() and rename to conf_get_pair(). Add two new wrapper routines conf_get_pair_equal() and conf_get_pair_space(). Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/kboot-parser.c')
-rw-r--r--discover/kboot-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index 025f13b..ab508ec 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -57,7 +57,7 @@ static void kboot_process_pair(struct conf_context *conf, const char *name,
for (pos++; pos;) {
char *cl_name, *cl_value;
- pos = conf_get_param_pair(pos, &cl_name, &cl_value, ' ');
+ pos = conf_get_pair_equal(conf, pos, &cl_name, &cl_value, ' ');
if (!cl_name) {
args = talloc_asprintf_append(args, "%s ", cl_value);
OpenPOWER on IntegriCloud