From befb66775967c2c6918b1fead8166d470ca06c35 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Mon, 4 Jan 2016 12:40:53 +0100 Subject: [PATCH] Fix naming of routed --- src/tools/routed.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tools/routed.cpp b/src/tools/routed.cpp index 90b9637fb..4890fa694 100644 --- a/src/tools/routed.cpp +++ b/src/tools/routed.cpp @@ -65,21 +65,21 @@ int main(int argc, const char *argv[]) try #ifdef __linux__ struct MemoryLocker final { - explicit MemoryLocker(bool shouldLock_) : shouldLock(shouldLock_) + explicit MemoryLocker(bool should_lock) : should_lock(should_lock) { - if (shouldLock && -1 == mlockall(MCL_CURRENT | MCL_FUTURE)) + if (should_lock && -1 == mlockall(MCL_CURRENT | MCL_FUTURE)) { - couldLock = false; + could_lock = false; SimpleLogger().Write(logWARNING) << "memory could not be locked to RAM"; } } ~MemoryLocker() { - if (shouldLock && couldLock) + if (should_lock && could_lock) (void)munlockall(); } - bool shouldLock = false, couldLock = true; - } memoryLocker(lib_config.use_shared_memory); + bool should_lock = false, could_lock = true; + } memory_locker(lib_config.use_shared_memory); #endif SimpleLogger().Write() << "starting up engines, " << OSRM_VERSION;