lib: Make dom_sid_string_buf static
authorVolker Lendecke <vl@samba.org>
Fri, 26 Oct 2018 12:09:32 +0000 (14:09 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 2 Nov 2018 23:23:31 +0000 (00:23 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Nov  3 00:23:31 CET 2018 on sn-devel-144

libcli/security/dom_sid.c
libcli/security/dom_sid.h

index 97f719f3082b78b882d6e39c4c5d2187bf14d399..2a0b60c3dd705c139f36be7bde98564ff6425c68 100644 (file)
@@ -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;
index d132628da9f33dbf9505ca475d6bc25aeff4b03c..1effdbc2f6c8bc9d06c6ff7abbb26a95e2e9cdcc 100644 (file)
@@ -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]; };