From 056096c30ba73cbc5304c99af5d5a08d89111aab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Jul 2005 08:35:18 +0000 Subject: r8284: - fixed some uninitialised variables in the irpc code - added code to send multiple irpc calls in parallel, to all servers that have registered the given name, with output going in io.results[i]. This allows you to make rpc calls to multiple servers at once, which is needed for clients like smbstatus (This used to be commit 061e20e509d95ffe16d7dd6fba7db39fc7a165ed) --- source4/scripting/ejs/mprutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/scripting/ejs/mprutil.c') diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c index c614792d8e..c915174126 100644 --- a/source4/scripting/ejs/mprutil.c +++ b/source4/scripting/ejs/mprutil.c @@ -88,11 +88,12 @@ /* add an indexed array element to a property */ -static void mprAddArray(struct MprVar *var, int i, struct MprVar v) + void mprAddArray(struct MprVar *var, int i, struct MprVar v) { char idx[16]; mprItoa(i, idx, sizeof(idx)); mprSetVar(var, idx, v); + mprSetVar(var, "length", mprCreateIntegerVar(i+1)); } /* @@ -179,8 +180,7 @@ struct MprVar mprLdbArray(struct ldb_message **msg, int count, const char *name) for (i=0;i