From: Günther Deschner Date: Fri, 5 Jun 2009 23:14:04 +0000 (+0200) Subject: nss_wrapper: rename nwrap_cache_{re,un}load as per metzes request. X-Git-Tag: tdb-1.1.5~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf56f5cb31accabb6a3ba81c18217ae24793218;p=thirdparty%2Fsamba.git nss_wrapper: rename nwrap_cache_{re,un}load as per metzes request. Guenther --- diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index 73ca6eb3a5e..ad0d8ba786e 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) {