From: Christof Schmitt Date: Fri, 11 Sep 2020 17:19:15 +0000 (-0700) Subject: lib: Make get_share_security_default static X-Git-Tag: talloc-2.3.2~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d34b6735f81cc21a1f6c364bd2c2804ff77d67c;p=thirdparty%2Fsamba.git lib: Make get_share_security_default static Reviewed-by: Christof Schmitt Reviewed-by: Volker Lendecke --- diff --git a/source3/include/proto.h b/source3/include/proto.h index 3641849fbe1..b91fd8bcad4 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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, diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index acbdd8b5df9..fbb2d4795fa 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -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;