diff options
author | Patrick Venture <venture@google.com> | 2019-08-23 09:16:07 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-09-17 01:43:45 +0000 |
commit | 235b3c76c354f9242192f56cab609ec9e53c0cc3 (patch) | |
tree | d920ade4e1310e0d34f2025ff30721a1a5cfdde4 /scripts | |
parent | f1d691ac5b12f2a59c1f73d66bc66f1ae63e6ec7 (diff) | |
download | phosphor-host-ipmid-235b3c76c354f9242192f56cab609ec9e53c0cc3.tar.gz phosphor-host-ipmid-235b3c76c354f9242192f56cab609ec9e53c0cc3.zip |
move entities into ipmi::sensor namespace
The object was left in the global namespace, but the type was in the
ipmi::sensor namespace. Move the object into the namespace.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: If3aa72ebbae980b0b837c45c8fcbc4b47b7fb742
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/writeentity.mako.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/writeentity.mako.cpp b/scripts/writeentity.mako.cpp index 110eca9..04ea87c 100644 --- a/scripts/writeentity.mako.cpp +++ b/scripts/writeentity.mako.cpp @@ -5,7 +5,8 @@ #include <ipmid/types.hpp> #include <utility> -using namespace ipmi::sensor; +namespace ipmi { +namespace sensor { extern const EntityInfoMap entities = { % for key in entityDict.iterkeys(): @@ -34,3 +35,6 @@ extern const EntityInfoMap entities = { }}, % endfor }; + +} // namespace sensor +} // namespace ipmi |