summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-21 15:02:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:19 -0500
commitad9003b44835ea7702479a9493c63e5c69eee067 (patch)
treefbecccf3474c69abc32720b279c690bac734081b /source4/torture/rpc
parent8fef2c8122a8d8ca522356353d30ed25dfd4c8fe (diff)
downloadsamba-ad9003b44835ea7702479a9493c63e5c69eee067.tar.gz
samba-ad9003b44835ea7702479a9493c63e5c69eee067.tar.bz2
samba-ad9003b44835ea7702479a9493c63e5c69eee067.zip
r15779: Remove keepref from atsvc and efs.
(This used to be commit b44a8c32d35bcd0dc7339793c34cb84dd6981366)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/atsvc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/atsvc.c b/source4/torture/rpc/atsvc.c
index 0381b31169..c1357b53d2 100644
--- a/source4/torture/rpc/atsvc.c
+++ b/source4/torture/rpc/atsvc.c
@@ -75,7 +75,7 @@ static BOOL test_JobEnum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
r.in.servername = dcerpc_server_name(p);
ctr.entries_read = 0;
ctr.first_entry = NULL;
- r.in.ctr = r.out.ctr = &ctr;
+ r.in.ctr = ctr;
r.in.preferred_max_len = 0xffffffff;
r.in.resume_handle = r.out.resume_handle = &resume_handle;
@@ -86,8 +86,8 @@ static BOOL test_JobEnum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
return False;
}
- for (i = 0; r.out.ctr && i < r.out.ctr->entries_read; i++) {
- if (!test_JobGetInfo(p, mem_ctx, r.out.ctr->first_entry[i].job_id)) {
+ for (i = 0; i < r.out.ctr.entries_read; i++) {
+ if (!test_JobGetInfo(p, mem_ctx, r.out.ctr.first_entry[i].job_id)) {
ret = False;
}
}
@@ -109,7 +109,7 @@ static BOOL test_JobAdd(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
info.days_of_week = 0x02; /* Tuesday */
info.flags = 0x11; /* periodic, non-interactive */
info.command = "foo.exe";
- r.in.job_info = &info;
+ r.in.job_info = info;
status = dcerpc_atsvc_JobAdd(p, mem_ctx, &r);