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 /logging_test.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 'logging_test.cpp')
-rw-r--r-- | logging_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/logging_test.cpp b/logging_test.cpp index 3a144f8..279d02b 100644 --- a/logging_test.cpp +++ b/logging_test.cpp @@ -3,6 +3,7 @@ #include <getopt.h> #include <systemd/sd-journal.h> +#include <cstring> #include <iostream> #include <phosphor-logging/elog-errors.hpp> #include <phosphor-logging/elog.hpp> @@ -202,7 +203,7 @@ int elog_test() void commitError(const char* text) { - if (strcmp(text, "AutoTestSimple") == 0) + if (std::strcmp(text, "AutoTestSimple") == 0) { try { @@ -216,7 +217,7 @@ void commitError(const char* text) commit(e.name()); } } - else if (strcmp(text, "AutoTestCreateAndCommit") == 0) + else if (std::strcmp(text, "AutoTestCreateAndCommit") == 0) { report<example::xyz::openbmc_project::Example::Elog::AutoTestSimple>( example::xyz::openbmc_project::Example::Elog::AutoTestSimple:: |