summaryrefslogtreecommitdiffstats
path: root/log_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log_manager.cpp')
-rw-r--r--log_manager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/log_manager.cpp b/log_manager.cpp
index ddb5a1d..3dc14d7 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -14,9 +14,12 @@
#include <chrono>
#include <cstdio>
+#include <cstring>
#include <fstream>
+#include <functional>
#include <future>
#include <iostream>
+#include <map>
#include <phosphor-logging/log.hpp>
#include <sdbusplus/vtable.hpp>
#include <set>
@@ -90,7 +93,7 @@ void Manager::_commit(uint64_t transactionId, std::string&& errMsg,
}
constexpr const auto transactionIdVar = "TRANSACTION_ID";
// Length of 'TRANSACTION_ID' string.
- constexpr const auto transactionIdVarSize = strlen(transactionIdVar);
+ constexpr const auto transactionIdVarSize = std::strlen(transactionIdVar);
// Length of 'TRANSACTION_ID=' string.
constexpr const auto transactionIdVarOffset = transactionIdVarSize + 1;
@@ -361,7 +364,7 @@ void Manager::journalSync()
// See if a sync happened by now
std::string timestampStr;
std::getline(syncedFile, timestampStr);
- auto timestamp = stoll(timestampStr);
+ auto timestamp = std::stoll(timestampStr);
if (timestamp >= start)
{
return;
OpenPOWER on IntegriCloud