summaryrefslogtreecommitdiffstats
path: root/vpnor/test/tmpd.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-10-11 13:55:04 -0700
committerWilliam A. Kennington III <wak@google.com>2018-10-12 01:03:47 -0700
commitd5f1d40f2ddf9234099b331e1d90c54ece0ee88b (patch)
tree41b69f239b5121ee39f7f2ca51453cfa6d62a44e /vpnor/test/tmpd.cpp
parentb7c49b22ccb82add7874b30cd96931b0f19b20e0 (diff)
downloadphosphor-mboxbridge-d5f1d40f2ddf9234099b331e1d90c54ece0ee88b.tar.gz
phosphor-mboxbridge-d5f1d40f2ddf9234099b331e1d90c54ece0ee88b.zip
clang-format: Pull the format rules from the openbmc/docs repo
This makes it consistent with other openbmc projects for c++ formatting. Tested: Run through the unit test suite. Change-Id: I92030ce5b42de01360393687fb438faf26f36ac8 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'vpnor/test/tmpd.cpp')
-rw-r--r--vpnor/test/tmpd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vpnor/test/tmpd.cpp b/vpnor/test/tmpd.cpp
index 1aaa1fb..917fb71 100644
--- a/vpnor/test/tmpd.cpp
+++ b/vpnor/test/tmpd.cpp
@@ -12,7 +12,7 @@ namespace test
namespace fs = std::experimental::filesystem;
-size_t VpnorRoot::write(const std::string &name, const void *data, size_t len)
+size_t VpnorRoot::write(const std::string& name, const void* data, size_t len)
{
// write() is for test environment setup - always write to ro section
fs::path path = root / "ro" / name;
@@ -21,18 +21,18 @@ size_t VpnorRoot::write(const std::string &name, const void *data, size_t len)
/* It's not in the ToC */
throw std::invalid_argument(name);
- std::ofstream(path).write((const char *)data, len);
+ std::ofstream(path).write((const char*)data, len);
return len;
}
-size_t VpnorRoot::patch(const std::string &name, const void *data, size_t len)
+size_t VpnorRoot::patch(const std::string& name, const void* data, size_t len)
{
if (!fs::exists(root / "ro" / name))
/* It's not in the ToC */
throw std::invalid_argument(name);
- std::ofstream(root / "patch" / name).write((const char *)data, len);
+ std::ofstream(root / "patch" / name).write((const char*)data, len);
return len;
}
OpenPOWER on IntegriCloud