s4:torture/locktest: fix compiler warning
authorStefan Metzmacher <metze@samba.org>
Mon, 28 May 2012 13:25:24 +0000 (15:25 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 15:33:49 +0000 (17:33 +0200)
metze

source4/torture/locktest.c

index 77fcb69eafd045a9170fa05be4c8a3e78d441004..f43f188fadf490cc1c7fb9a65b14b648ea47fc24 100644 (file)
@@ -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;