From: Stefan Metzmacher Date: Mon, 28 May 2012 13:25:24 +0000 (+0200) Subject: s4:torture/locktest: fix compiler warning X-Git-Tag: tevent-0.9.16~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd99e612022ec8607c7a2e85f0835621eb337b7b;p=thirdparty%2Fsamba.git s4:torture/locktest: fix compiler warning metze --- diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index 77fcb69eafd..f43f188fadf 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;