From: Volker Lendecke Date: Fri, 26 Oct 2018 12:09:32 +0000 (+0200) Subject: lib: Make dom_sid_string_buf static X-Git-Tag: tdb-1.3.17~947 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b9b574b2d5215fdf431cc5be106c58c0a4eefe;p=thirdparty%2Fsamba.git lib: Make dom_sid_string_buf static Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Nov 3 00:23:31 CET 2018 on sn-devel-144 --- diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 97f719f3082..2a0b60c3dd7 100644 --- a/libcli/security/dom_sid.c +++ b/libcli/security/dom_sid.c @@ -429,7 +429,7 @@ bool dom_sid_is_valid_account_domain(const struct dom_sid *sid) string length. If it overflows, return the string length that would result (buflen needs to be +1 for the terminating 0). */ -int dom_sid_string_buf(const struct dom_sid *sid, char *buf, int buflen) +static int dom_sid_string_buf(const struct dom_sid *sid, char *buf, int buflen) { int i, ofs, ret; uint64_t ia; diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index d132628da9f..1effdbc2f6c 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -99,7 +99,6 @@ bool dom_sid_in_domain(const struct dom_sid *domain_sid, bool dom_sid_is_valid_account_domain(const struct dom_sid *sid); #define DOM_SID_STR_BUFLEN (15*11+25) -int dom_sid_string_buf(const struct dom_sid *sid, char *buf, int buflen); char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid); struct dom_sid_buf { char buf[DOM_SID_STR_BUFLEN]; };