summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-08 12:47:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:24 -0500
commit002c4f7d18b4f154c7447c336acd205506d91899 (patch)
treeb931c725a4196b595b20fa78068557dda5313d92 /testprogs
parent3763ca47ab4cce72870c713074b65d959f0df281 (diff)
downloadsamba-002c4f7d18b4f154c7447c336acd205506d91899.tar.gz
samba-002c4f7d18b4f154c7447c336acd205506d91899.tar.bz2
samba-002c4f7d18b4f154c7447c336acd205506d91899.zip
r8244: need to be careful about local vs global variables in js
(This used to be commit 763296a9b3dbde939e7986046b55e677b80456cb)
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/ejs/samr.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/testprogs/ejs/samr.js b/testprogs/ejs/samr.js
index 42d8439ac4..4cbe7b9bc8 100644
--- a/testprogs/ejs/samr.js
+++ b/testprogs/ejs/samr.js
@@ -93,7 +93,7 @@ function test_OpenDomain(conn, handle, sid)
*/
function test_EnumDomainUsers(conn, dom_handle)
{
- var io = irpcObj();
+ var i, io = irpcObj();
print("Testing samr_EnumDomainUsers\n");
io.input.domain_handle = dom_handle;
io.input.resume_handle = 0;
@@ -105,7 +105,7 @@ function test_EnumDomainUsers(conn, dom_handle)
if (io.output.sam == NULL) {
return;
}
- entries = io.output.sam.entries;
+ var entries = io.output.sam.entries;
for (i=0;i<io.output.num_entries;i++) {
print("\t" + entries[i].name.string + "\n");
}
@@ -116,7 +116,7 @@ function test_EnumDomainUsers(conn, dom_handle)
*/
function test_EnumDomainGroups(conn, dom_handle)
{
- var io = irpcObj();
+ var i, io = irpcObj();
print("Testing samr_EnumDomainGroups\n");
io.input.domain_handle = dom_handle;
io.input.resume_handle = 0;
@@ -128,7 +128,7 @@ function test_EnumDomainGroups(conn, dom_handle)
if (io.output.sam == NULL) {
return;
}
- entries = io.output.sam.entries;
+ var entries = io.output.sam.entries;
for (i=0;i<io.output.num_entries;i++) {
print("\t" + entries[i].name.string + "\n");
}
@@ -150,7 +150,7 @@ function test_domain_ops(conn, dom_handle)
*/
function test_EnumDomains(conn, handle)
{
- var io = irpcObj();
+ var i, io = irpcObj();
print("Testing samr_EnumDomains\n");
io.input.connect_handle = handle;
io.input.resume_handle = 0;
@@ -161,7 +161,7 @@ function test_EnumDomains(conn, handle)
if (io.output.sam == NULL) {
return;
}
- entries = io.output.sam.entries;
+ var entries = io.output.sam.entries;
for (i=0;i<io.output.num_entries;i++) {
print("\t" + entries[i].name.string + "\n");
}