diff options
author | Patrick Venture <venture@google.com> | 2018-11-01 18:52:15 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-11-01 18:52:15 -0700 |
commit | 30047bf9647215951ba5dfe21ceb3e58a1b405a4 (patch) | |
tree | bbe9868b8130f57005c133b8241d62747965ccfc /log_manager.cpp | |
parent | f8d38bbebe990802ed01434fc3df5ba755eac58a (diff) | |
download | phosphor-logging-30047bf9647215951ba5dfe21ceb3e58a1b405a4.tar.gz phosphor-logging-30047bf9647215951ba5dfe21ceb3e58a1b405a4.zip |
minor cleanup, std namespacing
Added std namespace to places where there is a cpp version.
Change-Id: I60a05a7c9cdcd79cfffc3c4968005fcbe34acf81
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'log_manager.cpp')
-rw-r--r-- | log_manager.cpp | 7 |
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; |