]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Make get_share_security_default static
authorChristof Schmitt <cs@samba.org>
Fri, 11 Sep 2020 17:19:15 +0000 (10:19 -0700)
committerVolker Lendecke <vl@samba.org>
Sat, 12 Sep 2020 06:29:37 +0000 (06:29 +0000)
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/include/proto.h
source3/lib/sharesec.c

index 3641849fbe1333ce5f307c9dc9a81703cb05590a..b91fd8bcad4f14820e0308f37977dce4de244ceb 100644 (file)
@@ -143,7 +143,6 @@ struct named_mutex *grab_named_mutex(TALLOC_CTX *mem_ctx, const char *name,
 /* The following definitions come from lib/sharesec.c  */
 
 NTSTATUS share_info_db_init(void);
-struct security_descriptor *get_share_security_default( TALLOC_CTX *ctx, size_t *psize, uint32_t def_access);
 struct security_descriptor *get_share_security( TALLOC_CTX *ctx, const char *servicename,
                              size_t *psize);
 NTSTATUS set_share_security(const char *share_name,
index acbdd8b5df918b9f1c687dd39e9f7d615c4f550b..fbb2d4795fa5147b15fcefebbc13ccb22826cfd9 100644 (file)
@@ -267,7 +267,9 @@ NTSTATUS share_info_db_init(void)
  def_access is a GENERIC_XXX access mode.
  ********************************************************************/
 
-struct security_descriptor *get_share_security_default( TALLOC_CTX *ctx, size_t *psize, uint32_t def_access)
+static struct security_descriptor *get_share_security_default(TALLOC_CTX *ctx,
+                                                       size_t *psize,
+                                                       uint32_t def_access)
 {
        uint32_t sa;
        struct security_ace ace;