summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-18 14:14:01 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-19 00:43:03 +0200
commit2052c2d6fa830b94a6b6cf8dd48b56f62de4e5ac (patch)
tree2ef1037cefdcf55fcf3946c1faf6ac175080fe43 /source3/libsmb
parentd29f8491bdc3e04e4644c7ad0d0ef79c6f1affc3 (diff)
downloadsamba-2052c2d6fa830b94a6b6cf8dd48b56f62de4e5ac.tar.gz
samba-2052c2d6fa830b94a6b6cf8dd48b56f62de4e5ac.tar.bz2
samba-2052c2d6fa830b94a6b6cf8dd48b56f62de4e5ac.zip
s3-libsmb: remove unused cli_lock()
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
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c16
-rw-r--r--source3/libsmb/proto.h2
2 files changed, 0 insertions, 18 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index a5be74803c..8cf60ded81 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -2592,22 +2592,6 @@ NTSTATUS cli_lock32(struct cli_state *cli, uint16_t fnum,
}
/****************************************************************************
- 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.
****************************************************************************/
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 0029db13e2..070b4b1af1 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -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,