s3: Make "open_match_attributes" static
authorVolker Lendecke <vl@samba.org>
Fri, 31 Aug 2012 12:52:21 +0000 (14:52 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 4 Sep 2012 22:15:00 +0000 (15:15 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
source3/smbd/proto.h

index 381f3b5b27fecd1aa3bf21dcd3200ea11ff5c458..5714157970be7cce4089bae51435a7fadf734466 100644 (file)
@@ -1480,12 +1480,12 @@ static void defer_open(struct share_mode_lock *lck,
  On overwrite open ensure that the attributes match.
 ****************************************************************************/
 
-bool open_match_attributes(connection_struct *conn,
-                          uint32 old_dos_attr,
-                          uint32 new_dos_attr,
-                          mode_t existing_unx_mode,
-                          mode_t new_unx_mode,
-                          mode_t *returned_unx_mode)
+static bool open_match_attributes(connection_struct *conn,
+                                 uint32 old_dos_attr,
+                                 uint32 new_dos_attr,
+                                 mode_t existing_unx_mode,
+                                 mode_t new_unx_mode,
+                                 mode_t *returned_unx_mode)
 {
        uint32 noarch_old_dos_attr, noarch_new_dos_attr;
 
index 5f4947e9349484561694116a59f9fa0962c669ef..b7bab6ebfc450e523e715d37f7920be7e0ac059e 100644 (file)
@@ -608,12 +608,6 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
                                    const char *fname,
                                    SMB_STRUCT_STAT *psbuf);
 bool is_stat_open(uint32 access_mask);
-bool open_match_attributes(connection_struct *conn,
-                          uint32 old_dos_attr,
-                          uint32 new_dos_attr,
-                          mode_t existing_unx_mode,
-                          mode_t new_unx_mode,
-                          mode_t *returned_unx_mode);
 void remove_deferred_open_entry(struct file_id id, uint64_t mid,
                                struct server_id pid);
 bool is_deferred_open_async(const void *ptr);