s3:locking: make share_mode_do_locked() static
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Aug 2022 12:38:55 +0000 (14:38 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (00:34 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c
source3/locking/share_mode_lock.h

index 89b9d1dd2d2d5d879dd011b757c263d8b8f48c42..3d890a3c86ab35578f4e4aa10af753de98be6fd4 100644 (file)
@@ -1038,7 +1038,7 @@ static void share_mode_do_locked_fn(
        }
 }
 
-NTSTATUS share_mode_do_locked(
+static NTSTATUS share_mode_do_locked(
        struct file_id id,
        void (*fn)(const uint8_t *buf,
                   size_t buflen,
index c02058634ac83409aec278f192abdea37f32cdff..199e500df238db5885bfeee646611beee4627f81 100644 (file)
@@ -91,13 +91,6 @@ int share_entry_forall(
        void *private_data);
 
 NTSTATUS share_mode_count_entries(struct file_id fid, size_t *num_share_modes);
-NTSTATUS share_mode_do_locked(
-       struct file_id id,
-       void (*fn)(const uint8_t *buf,
-                  size_t buflen,
-                  bool *modified_dependent,
-                  void *private_data),
-       void *private_data);
 int share_mode_forall(
        int (*fn)(struct file_id fid,
                  const struct share_mode_data *data,