From 579bb0a9342a3da4b1be3fb7b25233327f1e4f75 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 23 Feb 2012 09:16:37 +0100 Subject: s4:torture:smb2:durable_open: remove unused lease variables in the open-oplock test Signed-off-by: Michael Adam --- source4/torture/smb2/durable_open.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source4/torture/smb2/durable_open.c') diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c index d667861804..a75027c007 100644 --- a/source4/torture/smb2/durable_open.c +++ b/source4/torture/smb2/durable_open.c @@ -1164,18 +1164,15 @@ bool test_durable_open_open_oplock(struct torture_context *tctx, { TALLOC_CTX *mem_ctx = talloc_new(tctx); struct smb2_create io1, io2; - struct smb2_lease ls; struct smb2_handle h1, h2; NTSTATUS status; char fname[256]; bool ret = true; - uint64_t lease; /* * Choose a random name and random lease in case the state is left a * little funky. */ - lease = random(); snprintf(fname, 256, "durable_open_open_oplock_%s.dat", generate_random_str(tctx, 8)); @@ -1215,7 +1212,6 @@ bool test_durable_open_open_oplock(struct torture_context *tctx, ZERO_STRUCT(io1); io1.in.fname = fname; io1.in.durable_handle = &h1; - io1.in.lease_request = &ls; status = smb2_create(tree1, mem_ctx, &io1); CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND); -- cgit