aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-11-26 14:36:58 +0100
committerVasil Dimov <vd@FreeBSD.org>2020-11-26 14:42:00 +0100
commita21dc469ccf076ca3b07b1adbd8bf667145f1c44 (patch)
treea92f84cf67c07576576bdd9538ec63c3b21930f7 /src/sync.cpp
parent6d3689fcf6cff397187028344570489db3e6ecf4 (diff)
downloadbitcoin-a21dc469ccf076ca3b07b1adbd8bf667145f1c44.tar.xz
sync: const-qualify the argument of double_lock_detected()
It is not modified in the function, so should be `const`.
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index 2160940952..f07916041a 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -139,7 +139,7 @@ static void potential_deadlock_detected(const LockPair& mismatch, const LockStac
throw std::logic_error(strprintf("potential deadlock detected: %s -> %s -> %s", mutex_b, mutex_a, mutex_b));
}
-static void double_lock_detected(const void* mutex, LockStack& lock_stack)
+static void double_lock_detected(const void* mutex, const LockStack& lock_stack)
{
LogPrintf("DOUBLE LOCK DETECTED\n");
LogPrintf("Lock order:\n");