summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-06-06 01:14:04 +0200
committerGünther Deschner <gd@samba.org>2009-06-06 02:00:36 +0200
commit0bf56f5cb31accabb6a3ba81c18217ae24793218 (patch)
treeca972aacb056d838c7c891339011134d8b05caa0 /lib
parent64a1f17aff1d17b74398fb270aac5768fd312cf6 (diff)
downloadsamba-0bf56f5cb31accabb6a3ba81c18217ae24793218.tar.gz
samba-0bf56f5cb31accabb6a3ba81c18217ae24793218.tar.bz2
samba-0bf56f5cb31accabb6a3ba81c18217ae24793218.zip
nss_wrapper: rename nwrap_cache_{re,un}load as per metzes request.
Guenther
Diffstat (limited to 'lib')
-rw-r--r--lib/nss_wrapper/nss_wrapper.c20
1 files changed, 10 insertions, 10 deletions
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; i++) {
if (strcmp(nwrap_pw_global.list[i].pw_name, name) == 0) {
@@ -1159,7 +1159,7 @@ static struct passwd *nwrap_files_getpwuid(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; i++) {
if (nwrap_pw_global.list[i].pw_uid == uid) {
@@ -1206,7 +1206,7 @@ static struct passwd *nwrap_files_getpwent(struct nwrap_backend *b)
struct passwd *pw;
if (nwrap_pw_global.idx == 0) {
- nwrap_cache_reload(nwrap_pw_global.cache);
+ nwrap_files_cache_reload(nwrap_pw_global.cache);
}
if (nwrap_pw_global.idx >= 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; i++) {
if (strcmp(nwrap_gr_global.list[i].gr_name, name) == 0) {
@@ -1299,7 +1299,7 @@ static struct group *nwrap_files_getgrgid(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; i++) {
if (nwrap_gr_global.list[i].gr_gid == gid) {
@@ -1346,7 +1346,7 @@ static struct group *nwrap_files_getgrent(struct nwrap_backend *b)
struct group *gr;
if (nwrap_gr_global.idx == 0) {
- nwrap_cache_reload(nwrap_gr_global.cache);
+ nwrap_files_cache_reload(nwrap_gr_global.cache);
}
if (nwrap_gr_global.idx >= nwrap_gr_global.num) {