1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r8244: need to be careful about local vs global variables in js

(This used to be commit 763296a9b3)
This commit is contained in:
Andrew Tridgell 2005-07-08 12:47:34 +00:00 committed by Gerald (Jerry) Carter
parent 3763ca47ab
commit 002c4f7d18

View File

@ -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");
}