summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-28 15:25:24 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-05 17:33:49 +0200
commitcd99e612022ec8607c7a2e85f0835621eb337b7b (patch)
tree338ae3fb8c7eebef9abcf812dd295fa8c090f583 /source4/torture
parent5cc86fd560568202bef069eb89f5906f20050085 (diff)
downloadsamba-cd99e612022ec8607c7a2e85f0835621eb337b7b.tar.gz
samba-cd99e612022ec8607c7a2e85f0835621eb337b7b.tar.bz2
samba-cd99e612022ec8607c7a2e85f0835621eb337b7b.zip
s4:torture/locktest: fix compiler warning
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/locktest.c2
1 files changed, 1 insertions, 1 deletions
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;