From c271ff7b88f643b772e6e9d15d43ec73ffc37344 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 29 Mar 2021 16:57:04 +0100 Subject: [PATCH] circache: fix some wrong return -1 in bool funcs --- src/utils/circache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/circache.cpp b/src/utils/circache.cpp index 1b7c2bd4..be66e756 100644 --- a/src/utils/circache.cpp +++ b/src/utils/circache.cpp @@ -803,7 +803,7 @@ bool CirCache::uniquentries() { if (m_d == 0) { LOGERR("CirCache::open: null data\n"); - return -1; + return false; } return m_d->m_uniquentries; } @@ -1427,7 +1427,7 @@ bool CirCache::compact(const std::string& dir, std::string *reason) if (reason) { *reason = msg.str(); } - return -1; + return false; } long long avmbs; if (fsocc(dir, nullptr, &avmbs) && avmbs * 1024 * 1024 < 1.2 * occ->size()) { @@ -1546,7 +1546,7 @@ bool CirCache::burst(const std::string& ccdir, const std::string destdir, std::s if (reason) { *reason = msg.str(); } - return -1; + return false; } long long avmbs; if (fsocc(destdir, nullptr, &avmbs) && avmbs * 1024 * 1024 < 1.2 * occ->size()) {