From 696cf4d3c013f99d034c19c6762bf71c7c1ee8a6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 7 Jan 2008 10:59:14 +0100 Subject: Make wcache_invalidate_cache() return bool, not int. Michael (This used to be commit dba24ceae78ffc49200b647838b6bf3657275add) --- source3/winbindd/winbindd.c | 2 +- source3/winbindd/winbindd_cache.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index dfad50bf96..8ebae3f16d 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -121,7 +121,7 @@ static void flush_caches(void) otherwise cached access denied errors due to restrict anonymous hang around until the sequence number changes. */ - if (wcache_invalidate_cache() < 0) { + if (!wcache_invalidate_cache()) { DEBUG(0, ("invalidating the cache failed; revalidate the cache\n")); /* Close the cache to be able to valdite the cache */ close_winbindd_cache(); diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 9602a128a6..19becab1a6 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2261,7 +2261,7 @@ void wcache_invalidate_samlogon(struct winbindd_domain *domain, netsamlogon_clear_cached_user(cache->tdb, info3); } -int wcache_invalidate_cache(void) +bool wcache_invalidate_cache(void) { struct winbindd_domain *domain; @@ -2274,11 +2274,11 @@ int wcache_invalidate_cache(void) if (cache->tdb) { tdb_traverse(cache->tdb, traverse_fn, NULL); } else { - return -1; + return false; } } } - return 0; + return true; } bool init_wcache(void) -- cgit