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:
committed by
Gerald (Jerry) Carter
parent
a03e09b878
commit
01ce5448f4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user