diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-11-22 16:55:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:24 -0500 |
commit | 41848fea6fb3cea36caf0790302f7460b03d17c9 (patch) | |
tree | 9d3f3897ba6eba28e5cc17aa4b252f4efb3cf699 /source4/torture | |
parent | ef9e094d848cee3dd61cf6521458d946df2e24d7 (diff) | |
download | samba-41848fea6fb3cea36caf0790302f7460b03d17c9.tar.gz samba-41848fea6fb3cea36caf0790302f7460b03d17c9.tar.bz2 samba-41848fea6fb3cea36caf0790302f7460b03d17c9.zip |
r19844: Fix warnings and errors in epmapper IDL.
(This used to be commit 0221d5b6c4250a3a2c86c623c534996d7decb1f6)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/epmapper.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c index e0abdcff0b..51914aa614 100644 --- a/source4/torture/rpc/epmapper.c +++ b/source4/torture/rpc/epmapper.c @@ -78,7 +78,7 @@ static BOOL test_Map(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, status = dcerpc_epm_Map(p, mem_ctx, &r); if (NT_STATUS_IS_OK(status) && r.out.result == 0) { - for (i=0;i<r.out.num_towers;i++) { + for (i=0;i<*r.out.num_towers;i++) { if (r.out.towers[i].twr) { display_tower(mem_ctx, &r.out.towers[i].twr->tower); } @@ -91,7 +91,7 @@ static BOOL test_Map(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, status = dcerpc_epm_Map(p, mem_ctx, &r); if (NT_STATUS_IS_OK(status) && r.out.result == 0) { - for (i=0;i<r.out.num_towers;i++) { + for (i=0;i<*r.out.num_towers;i++) { if (r.out.towers[i].twr) { display_tower(mem_ctx, &r.out.towers[i].twr->tower); } @@ -104,7 +104,7 @@ static BOOL test_Map(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, status = dcerpc_epm_Map(p, mem_ctx, &r); if (NT_STATUS_IS_OK(status) && r.out.result == 0) { - for (i=0;i<r.out.num_towers;i++) { + for (i=0;i<*r.out.num_towers;i++) { if (r.out.towers[i].twr) { display_tower(mem_ctx, &r.out.towers[i].twr->tower); } @@ -121,7 +121,7 @@ static BOOL test_Map(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, status = dcerpc_epm_Map(p, mem_ctx, &r); if (NT_STATUS_IS_OK(status) && r.out.result == 0) { - for (i=0;i<r.out.num_towers;i++) { + for (i=0;i<*r.out.num_towers;i++) { if (r.out.towers[i].twr) { display_tower(mem_ctx, &r.out.towers[i].twr->tower); } @@ -163,9 +163,9 @@ static BOOL test_Lookup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) } printf("epm_Lookup returned %d events GUID %s\n", - r.out.num_ents, GUID_string(mem_ctx, &handle.uuid)); + *r.out.num_ents, GUID_string(mem_ctx, &handle.uuid)); - for (i=0;i<r.out.num_ents;i++) { + for (i=0;i<*r.out.num_ents;i++) { printf("\nFound '%s'\n", r.out.entries[i].annotation); display_tower(mem_ctx, &r.out.entries[i].tower->tower); if (r.out.entries[i].tower->tower.num_floors == 5) { @@ -174,7 +174,7 @@ static BOOL test_Lookup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) } } while (NT_STATUS_IS_OK(status) && r.out.result == 0 && - r.out.num_ents == r.in.max_ents && + *r.out.num_ents == r.in.max_ents && !policy_handle_empty(&handle)); if (!NT_STATUS_IS_OK(status)) { |