1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00

r25460: use common structure in param/generic.c

This commit is contained in:
Jelmer Vernooij
2007-10-02 13:00:33 +00:00
committed by Gerald (Jerry) Carter
parent a03e09b878
commit 01ce5448f4
4 changed files with 31 additions and 42 deletions

View File

@@ -155,10 +155,10 @@ static int ejs_param_data(MprVarHandle eid, int argc, char **argv)
for (sec = ctx->sections; sec; sec = sec->next) {
struct MprVar ps = mprObject("array");
struct param *p;
struct param_opt *p;
for (p = sec->parameters; p; p = p->next) {
mprSetVar(&ps, p->name, mprString(p->value));
mprSetVar(&ps, p->key, mprString(p->value));
}
mprSetVar(&ret, sec->name, ps);