summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/ejs/smbcalls_config.c')
-rw-r--r--source4/scripting/ejs/smbcalls_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_config.c b/source4/scripting/ejs/smbcalls_config.c
index 19e7a1c744..97c90c8f5a 100644
--- a/source4/scripting/ejs/smbcalls_config.c
+++ b/source4/scripting/ejs/smbcalls_config.c
@@ -38,7 +38,7 @@ static int ejs_lpServices(MprVarHandle eid, int argc, char **argv)
list = str_list_add(list, lp_servicename(i));
}
talloc_steal(mprMemCtx(), list);
- ejs_returnlist(eid, "services", list);
+ mpr_Return(eid, mprList("services", list));
return 0;
}
@@ -131,7 +131,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
}
return -1;
case P_LIST:
- ejs_returnlist(eid, parm->label, *(const char ***)parm_ptr);
+ mpr_Return(eid, mprList(parm->label, *(const char ***)parm_ptr));
break;
case P_SEP:
return -1;