From 0bf56f5cb31accabb6a3ba81c18217ae24793218 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 6 Jun 2009 01:14:04 +0200 Subject: nss_wrapper: rename nwrap_cache_{re,un}load as per metzes request. Guenther --- lib/nss_wrapper/nss_wrapper.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/nss_wrapper') diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index 73ca6eb3a5..ad0d8ba786 100644 --- a/lib/nss_wrapper/nss_wrapper.c +++ b/lib/nss_wrapper/nss_wrapper.c @@ -632,7 +632,7 @@ failed: return false; } -static void nwrap_cache_unload(struct nwrap_cache *nwrap) +static void nwrap_files_cache_unload(struct nwrap_cache *nwrap) { nwrap->unload(nwrap); @@ -641,7 +641,7 @@ static void nwrap_cache_unload(struct nwrap_cache *nwrap) nwrap->buf = NULL; } -static void nwrap_cache_reload(struct nwrap_cache *nwrap) +static void nwrap_files_cache_reload(struct nwrap_cache *nwrap) { struct stat st; int ret; @@ -692,13 +692,13 @@ reopen: nwrap->st = st; - nwrap_cache_unload(nwrap); + nwrap_files_cache_unload(nwrap); ok = nwrap_parse_file(nwrap); if (!ok) { NWRAP_ERROR(("%s: failed to reload %s\n", __location__, nwrap->path)); - nwrap_cache_unload(nwrap); + nwrap_files_cache_unload(nwrap); } NWRAP_DEBUG(("%s: reloaded %s\n", __location__, nwrap->path)); @@ -1118,7 +1118,7 @@ static struct passwd *nwrap_files_getpwnam(struct nwrap_backend *b, { int i; - nwrap_cache_reload(nwrap_pw_global.cache); + nwrap_files_cache_reload(nwrap_pw_global.cache); for (i=0; i= nwrap_pw_global.num) { @@ -1258,7 +1258,7 @@ static struct group *nwrap_files_getgrnam(struct nwrap_backend *b, { int i; - nwrap_cache_reload(nwrap_gr_global.cache); + nwrap_files_cache_reload(nwrap_gr_global.cache); for (i=0; i= nwrap_gr_global.num) { -- cgit