diff options
author | Michael Adam <obnox@samba.org> | 2008-01-07 10:59:14 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-07 10:59:14 +0100 |
commit | 696cf4d3c013f99d034c19c6762bf71c7c1ee8a6 (patch) | |
tree | dfd4e7423c253dade626da271c9d792ce2b4722d /source3 | |
parent | c4d3f1b0f5345086e18cb4740e7a0c4fa222089a (diff) | |
download | samba-696cf4d3c013f99d034c19c6762bf71c7c1ee8a6.tar.gz samba-696cf4d3c013f99d034c19c6762bf71c7c1ee8a6.tar.bz2 samba-696cf4d3c013f99d034c19c6762bf71c7c1ee8a6.zip |
Make wcache_invalidate_cache() return bool, not int.
Michael
(This used to be commit dba24ceae78ffc49200b647838b6bf3657275add)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd.c | 2 | ||||
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 6 |
2 files changed, 4 insertions, 4 deletions
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) |