winbindd: Make wcache_flush_cache static
authorVolker Lendecke <vl@samba.org>
Wed, 12 Jul 2017 10:40:29 +0000 (12:40 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 1 Aug 2017 05:53:21 +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 d4e4471e4481376f400388089efd06f7f7c9f26a..9c56938bcbaae1ab944836dd1ddca8208de56b2a 100644 (file)
@@ -52,6 +52,8 @@ extern struct winbindd_methods reconnect_ads_methods;
 extern struct winbindd_methods builtin_passdb_methods;
 extern struct winbindd_methods sam_passdb_methods;
 
+static void wcache_flush_cache(void);
+
 /*
  * JRA. KEEP THIS LIST UP TO DATE IF YOU ADD CACHE ENTRIES.
  * Here are the list of entry types that are *not* stored
@@ -3319,7 +3321,7 @@ static int traverse_fn_cleanup(TDB_CONTEXT *the_tdb, TDB_DATA kbuf,
 }
 
 /* flush the cache */
-void wcache_flush_cache(void)
+static void wcache_flush_cache(void)
 {
        char *db_path;
 
index 6d6fafcb72f254dbae65036e6811263a38bae46d..aa2693b7ecf2ee4d0254e650658e79a10e65f3eb 100644 (file)
@@ -178,7 +178,6 @@ NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
                                  uint32_t *pnum_sids,
                                  struct dom_sid **psids);
 
-void wcache_flush_cache(void);
 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) ;
 bool set_global_winbindd_state_offline(void);