s3-libsmb: remove unused cli_lock()
authorBjörn Baumbach <bb@sernet.de>
Mon, 18 Jul 2011 12:14:01 +0000 (14:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jul 2011 22:43:03 +0000 (00:43 +0200)
Replaced with cli_lock32()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 19 00:43:03 CEST 2011 on sn-devel-104

source3/libsmb/clifile.c
source3/libsmb/proto.h

index a5be74803c14994cccaece561a567c91ffb562d6..8cf60ded81ebb370c9b8ef043edba2ad7fedc3ad 100644 (file)
@@ -2591,22 +2591,6 @@ NTSTATUS cli_lock32(struct cli_state *cli, uint16_t fnum,
        return status;
 }
 
-/****************************************************************************
- Lock a file.
- note that timeout is in units of 2 milliseconds
-****************************************************************************/
-
-bool cli_lock(struct cli_state *cli, uint16_t fnum,
-                 uint32_t offset, uint32_t len, int timeout,
-                 enum brl_type lock_type)
-{
-       NTSTATUS status;
-
-       status = cli_locktype(cli, fnum, offset, len, timeout,
-                             (lock_type == READ_LOCK? 1 : 0));
-       return NT_STATUS_IS_OK(status);
-}
-
 /****************************************************************************
  Unlock a file.
 ****************************************************************************/
index 0029db13e27652f8e93108ec8f076c2fd9f6cb43..070b4b1af1ab319a9d034ac54a83920520c7dd72 100644 (file)
@@ -388,8 +388,6 @@ NTSTATUS cli_ftruncate(struct cli_state *cli, uint16_t fnum, uint64_t size);
 NTSTATUS cli_locktype(struct cli_state *cli, uint16_t fnum,
                      uint32_t offset, uint32_t len,
                      int timeout, unsigned char locktype);
-bool cli_lock(struct cli_state *cli, uint16_t fnum,
-             uint32_t offset, uint32_t len, int timeout, enum brl_type lock_type);
 NTSTATUS cli_lock32(struct cli_state *cli, uint16_t fnum, uint32_t offset,
                    uint32_t len, int timeout, enum brl_type lock_type);
 struct tevent_req *cli_unlock_send(TALLOC_CTX *mem_ctx,