summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-15 00:35:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:29 -0500
commit55648eb94862421a50630818040c78841be443b4 (patch)
tree2e93f459804e9743b5a34e251003f0201d7d5f35 /source3
parent0ce53f8ba5110381ad6f910abe581a69019135b8 (diff)
downloadsamba-55648eb94862421a50630818040c78841be443b4.tar.gz
samba-55648eb94862421a50630818040c78841be443b4.tar.bz2
samba-55648eb94862421a50630818040c78841be443b4.zip
r14405: Fix the build when nscd_flush_cache is detected
(variable definition was missing). Jeremy. (This used to be commit 48594f0270502149069fc883096181a9730d76bf)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_dual.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index 14e0ef4ce2..fc889eb8a9 100644
--- a/source3/nsswitch/winbindd_dual.c
+++ b/source3/nsswitch/winbindd_dual.c
@@ -571,17 +571,19 @@ static void child_msg_online(int msg_type, struct process_id src, void *buf, siz
set_global_winbindd_state_online();
#ifdef HAVE_NSCD_FLUSH_CACHE
- /* Flush nscd caches to get accurate new information */
- ret = nscd_flush_cache("passwd");
- if (ret) {
- DEBUG(5,("failed to flush nscd cache for 'passwd' service: %s\n",
- strerror(ret)));
- }
+ {
+ /* Flush nscd caches to get accurate new information */
+ int ret = nscd_flush_cache("passwd");
+ if (ret) {
+ DEBUG(5,("failed to flush nscd cache for 'passwd' service: %s\n",
+ strerror(ret)));
+ }
- ret = nscd_flush_cache("group");
- if (ret) {
- DEBUG(5,("failed to flush nscd cache for 'group' service: %s\n",
- strerror(ret)));
+ ret = nscd_flush_cache("group");
+ if (ret) {
+ DEBUG(5,("failed to flush nscd cache for 'group' service: %s\n",
+ strerror(ret)));
+ }
}
#endif