s3:smbd: fcb_or_dos_open() can be static
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jun 2012 16:13:55 +0000 (18:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:37 +0000 (10:18 +0200)
metze

source3/smbd/open.c
source3/smbd/proto.h

index a012675f566b8d1fadef43329c093fcc7c636e7e..c42835665b48a978e12fb8cd2e8bac94439817a7 100644 (file)
@@ -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;
 
index 693a498026b15685a859667b4e8bab862631fb62..e9365661be167d4c593bd0223530576b18cadaeb 100644 (file)
@@ -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,