winbindd: Make wcache_query_user static
authorVolker Lendecke <vl@samba.org>
Tue, 1 Aug 2017 13:11:09 +0000 (15:11 +0200)
committerMartin Schwenke <martins@samba.org>
Mon, 7 Aug 2017 03:35:13 +0000 (05:35 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_proto.h

index ce5e5cdfa30280f8d03b23a32171ad289e59637d..b92eba030aee4fd7cd2d31187bd4283d67204923 100644 (file)
@@ -2223,10 +2223,10 @@ NTSTATUS wb_cache_rids_to_names(struct winbindd_domain *domain,
        return result;
 }
 
-NTSTATUS wcache_query_user(struct winbindd_domain *domain,
-                          TALLOC_CTX *mem_ctx,
-                          const struct dom_sid *user_sid,
-                          struct wbint_userinfo *info)
+static NTSTATUS wcache_query_user(struct winbindd_domain *domain,
+                                 TALLOC_CTX *mem_ctx,
+                                 const struct dom_sid *user_sid,
+                                 struct wbint_userinfo *info)
 {
        struct winbind_cache *cache = get_cache(domain);
        struct cache_entry *centry = NULL;
index 6aa0ed99b6b32a8b3c6323745c3d6acb4b46835e..7560fc53bae04b1f63fc8482c9e488b082fd8a52 100644 (file)
@@ -148,10 +148,6 @@ void cache_name2sid_trusted(struct winbindd_domain *domain,
 void cache_name2sid(struct winbindd_domain *domain, 
                    const char *domain_name, const char *name,
                    enum lsa_SidType type, const struct dom_sid *sid);
-NTSTATUS wcache_query_user(struct winbindd_domain *domain,
-                          TALLOC_CTX *mem_ctx,
-                          const struct dom_sid *user_sid,
-                          struct wbint_userinfo *info);
 NTSTATUS wcache_query_user_fullname(struct winbindd_domain *domain,
                                    TALLOC_CTX *mem_ctx,
                                    const struct dom_sid *user_sid,