summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-04-24 00:38:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:14 -0500
commit9d9e5abdcee6581ff42d7bdcf7b236472cbec347 (patch)
treeb79dc2522c619273d03efaeca2a0df1550d5a1bd /source4/scripting
parent6ab33938d5239e8688440f65e802f627622d301b (diff)
downloadsamba-9d9e5abdcee6581ff42d7bdcf7b236472cbec347.tar.gz
samba-9d9e5abdcee6581ff42d7bdcf7b236472cbec347.tar.bz2
samba-9d9e5abdcee6581ff42d7bdcf7b236472cbec347.zip
r15187: Introduce new param type P_BYTES. This lets config options which specify
byte counts be given in convenient units. (This used to be commit 1b8891a2f389c1016c3cfcbe635ed86d015554d8)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/smbcalls_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_config.c b/source4/scripting/ejs/smbcalls_config.c
index 949dd0321a..fae497e2a5 100644
--- a/source4/scripting/ejs/smbcalls_config.c
+++ b/source4/scripting/ejs/smbcalls_config.c
@@ -126,7 +126,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
/* its a global parameter */
parm = lp_parm_struct(argv[0]);
if (parm == NULL) return -1;
- parm_ptr = parm->ptr;
+ parm_ptr = lp_parm_ptr(-1, parm);
}
if (parm == NULL || parm_ptr == NULL) {
@@ -143,6 +143,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
mpr_Return(eid, mprCreateBoolVar(*(BOOL *)parm_ptr));
break;
case P_INTEGER:
+ case P_BYTES:
mpr_Return(eid, mprCreateIntegerVar(*(int *)parm_ptr));
break;
case P_ENUM: