r14405: Fix the build when nscd_flush_cache is detected
authorJeremy Allison <jra@samba.org>
Wed, 15 Mar 2006 00:35:51 +0000 (00:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:29 +0000 (11:15 -0500)
(variable definition was missing).
Jeremy.
(This used to be commit 48594f0270502149069fc883096181a9730d76bf)

source3/nsswitch/winbindd_dual.c

index 14e0ef4ce2464c0679d3fea0dc496a34846d711e..fc889eb8a9f30a293e63332e1927a814f152b22b 100644 (file)
@@ -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