From 55648eb94862421a50630818040c78841be443b4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Mar 2006 00:35:51 +0000 Subject: r14405: Fix the build when nscd_flush_cache is detected (variable definition was missing). Jeremy. (This used to be commit 48594f0270502149069fc883096181a9730d76bf) --- source3/nsswitch/winbindd_dual.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'source3/nsswitch') 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 -- cgit