From 8d534d45a5d21967e2d9bca1ac34a55f1518fe42 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 7 Jul 2009 18:09:16 +0200 Subject: s3:smbd: make smbd_do_locking() non static metze --- source3/smbd/globals.h | 17 +++++++++++++++++ source3/smbd/reply.c | 25 +++++++++---------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 3d195c84f0..8163213dd0 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -168,6 +168,23 @@ NTSTATUS smb2_signing_check_pdu(DATA_BLOB session_key, const struct iovec *vector, int count); +struct smbd_lock_element { + uint32_t smbpid; + enum brl_type brltype; + uint64_t offset; + uint64_t count; +}; + +NTSTATUS smbd_do_locking(struct smb_request *req, + files_struct *fsp, + uint8_t type, + int32_t timeout, + uint16_t num_ulocks, + struct smbd_lock_element *ulocks, + uint16_t num_locks, + struct smbd_lock_element *locks, + bool *async); + void smbd_server_connection_terminate_ex(struct smbd_server_connection *sconn, const char *reason, const char *location); diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 4a915d6f90..98ee83ea83 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -7223,22 +7223,15 @@ uint64_t get_lock_offset(const uint8_t *data, int data_offset, return offset; } -struct smbd_lock_element { - uint32_t smbpid; - enum brl_type brltype; - uint64_t offset; - uint64_t count; -}; - -static NTSTATUS smbd_do_locking(struct smb_request *req, - files_struct *fsp, - uint8_t type, - int32_t timeout, - uint16_t num_ulocks, - struct smbd_lock_element *ulocks, - uint16_t num_locks, - struct smbd_lock_element *locks, - bool *async) +NTSTATUS smbd_do_locking(struct smb_request *req, + files_struct *fsp, + uint8_t type, + int32_t timeout, + uint16_t num_ulocks, + struct smbd_lock_element *ulocks, + uint16_t num_locks, + struct smbd_lock_element *locks, + bool *async) { connection_struct *conn = req->conn; int i; -- cgit