winbindd: Make wcache_lookup_usergroups static
authorVolker Lendecke <vl@samba.org>
Wed, 12 Jul 2017 12:56:32 +0000 (14:56 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 1 Aug 2017 05:53:22 +0000 (07:53 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_proto.h

index 7f363e953d81870f401217c2a4a4df5987174d04..adc68eb0d11c8a355889ff137df148f190bb085b 100644 (file)
@@ -2321,11 +2321,11 @@ NTSTATUS wcache_query_user_fullname(struct winbindd_domain *domain,
        return NT_STATUS_OK;
 }
 
-NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
-                                 TALLOC_CTX *mem_ctx,
-                                 const struct dom_sid *user_sid,
-                                 uint32_t *pnum_sids,
-                                 struct dom_sid **psids)
+static NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
+                                        TALLOC_CTX *mem_ctx,
+                                        const struct dom_sid *user_sid,
+                                        uint32_t *pnum_sids,
+                                        struct dom_sid **psids)
 {
        struct winbind_cache *cache = get_cache(domain);
        struct cache_entry *centry = NULL;
index e8051b28c55a6b6a37c7d6f05f563e0e2d262fda..6aa0ed99b6b32a8b3c6323745c3d6acb4b46835e 100644 (file)
@@ -156,11 +156,6 @@ NTSTATUS wcache_query_user_fullname(struct winbindd_domain *domain,
                                    TALLOC_CTX *mem_ctx,
                                    const struct dom_sid *user_sid,
                                    const char **full_name);
-NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
-                                 TALLOC_CTX *mem_ctx,
-                                 const struct dom_sid *user_sid,
-                                 uint32_t *pnum_sids,
-                                 struct dom_sid **psids);
 
 NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
 NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const struct dom_sid *sid) ;