summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-04 18:13:55 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-06 10:18:37 +0200
commit145fe2ac4c43aef94ae64f991fdf63b6487bda8e (patch)
treec59be40cf8eacc6f857be87e20211ef8126e3bc4 /source3
parent0907b1e20c8cbbf5f6c4daa44492792585e65fbc (diff)
downloadsamba-145fe2ac4c43aef94ae64f991fdf63b6487bda8e.tar.gz
samba-145fe2ac4c43aef94ae64f991fdf63b6487bda8e.tar.bz2
samba-145fe2ac4c43aef94ae64f991fdf63b6487bda8e.zip
s3:smbd: fcb_or_dos_open() can be static
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c20
-rw-r--r--source3/smbd/proto.h10
2 files changed, 10 insertions, 20 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index a012675f56..c42835665b 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1422,16 +1422,16 @@ bool open_match_attributes(connection_struct *conn,
Try and find a duplicated file handle.
****************************************************************************/
-NTSTATUS fcb_or_dos_open(struct smb_request *req,
- connection_struct *conn,
- files_struct *fsp_to_dup_into,
- const struct smb_filename *smb_fname,
- struct file_id id,
- uint16 file_pid,
- uint16 vuid,
- uint32 access_mask,
- uint32 share_access,
- uint32 create_options)
+static NTSTATUS fcb_or_dos_open(struct smb_request *req,
+ connection_struct *conn,
+ files_struct *fsp_to_dup_into,
+ const struct smb_filename *smb_fname,
+ struct file_id id,
+ uint16 file_pid,
+ uint16 vuid,
+ uint32 access_mask,
+ uint32 share_access,
+ uint32 create_options)
{
files_struct *fsp;
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 693a498026..e9365661be 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -611,16 +611,6 @@ bool open_match_attributes(connection_struct *conn,
mode_t existing_unx_mode,
mode_t new_unx_mode,
mode_t *returned_unx_mode);
-NTSTATUS fcb_or_dos_open(struct smb_request *req,
- connection_struct *conn,
- files_struct *fsp_to_dup_into,
- const struct smb_filename *smb_fname,
- struct file_id id,
- uint16 file_pid,
- uint16 vuid,
- uint32 access_mask,
- uint32 share_access,
- uint32 create_options);
void remove_deferred_open_entry(struct file_id id, uint64_t mid,
struct server_id pid);
NTSTATUS open_file_fchmod(connection_struct *conn,