summaryrefslogtreecommitdiffstats
path: root/scripts/writesensor.mako.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-09-09 14:47:22 -0700
committerPatrick Venture <venture@google.com>2019-09-17 01:43:55 +0000
commitdb0cbe643bc8d017afd58903eb4aacd48f94361a (patch)
treeea80bdea2f083ebebb64e1f0e3d26164e2a4e2ee /scripts/writesensor.mako.cpp
parent235b3c76c354f9242192f56cab609ec9e53c0cc3 (diff)
downloadphosphor-host-ipmid-db0cbe643bc8d017afd58903eb4aacd48f94361a.tar.gz
phosphor-host-ipmid-db0cbe643bc8d017afd58903eb4aacd48f94361a.zip
move sensors 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: I88e46da4abda220d3b6fcc2ea64b8ef0decb0dc3
Diffstat (limited to 'scripts/writesensor.mako.cpp')
-rw-r--r--scripts/writesensor.mako.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/writesensor.mako.cpp b/scripts/writesensor.mako.cpp
index 192b858..c740f6f 100644
--- a/scripts/writesensor.mako.cpp
+++ b/scripts/writesensor.mako.cpp
@@ -27,7 +27,9 @@ interfaceDict = {}
#include "sensordatahandler.hpp"
#include <ipmid/types.hpp>
-using namespace ipmi::sensor;
+
+namespace ipmi {
+namespace sensor {
extern const IdInfoMap sensors = {
% for key in sensorDict.iterkeys():
@@ -145,3 +147,5 @@ except KeyError, e:
% endfor
};
+} // namespace sensor
+} // namespace ipmi
OpenPOWER on IntegriCloud