From cd99e612022ec8607c7a2e85f0835621eb337b7b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 May 2012 15:25:24 +0200 Subject: s4:torture/locktest: fix compiler warning metze --- source4/torture/locktest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture') diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index 77fcb69eaf..f43f188fad 100644 --- a/source4/torture/locktest.c +++ b/source4/torture/locktest.c @@ -242,7 +242,7 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], parms.lockx.level = RAW_LOCK_LOCKX; parms.lockx.in.file.fnum = fn; - ltype = (rec->lock_op == READ_LOCK? 1 : 0); + ltype = (rec->lock_type == READ_LOCK? 1 : 0); ltype |= LOCKING_ANDX_LARGE_FILES; parms.lockx.in.mode = ltype; parms.lockx.in.timeout = LOCK_TIMEOUT; -- cgit