diff options
Diffstat (limited to 'source4/scripting/ejs/smbcalls_sys.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_sys.c b/source4/scripting/ejs/smbcalls_sys.c index 10de8e162e8..86e0873e09d 100644 --- a/source4/scripting/ejs/smbcalls_sys.c +++ b/source4/scripting/ejs/smbcalls_sys.c @@ -32,10 +32,10 @@ */ static int ejs_sys_interfaces(MprVarHandle eid, int argc, struct MprVar **argv) { - int i, count = iface_count(); + int i, count = iface_count(global_loadparm); struct MprVar ret = mprArray("interfaces"); for (i=0;i<count;i++) { - mprAddArray(&ret, i, mprString(iface_n_ip(i))); + mprAddArray(&ret, i, mprString(iface_n_ip(global_loadparm, i))); } mpr_Return(eid, ret); return 0; |