summaryrefslogtreecommitdiffstats
path: root/ipmi.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-06-04 07:20:24 -0700
committerPatrick Venture <venture@google.com>2019-06-17 18:51:19 +0000
commit8bc117792fbf118dd74d015546c22612961ccc26 (patch)
tree561a4dbb372b4a8811ba66e8f8beac8da31bb6f1 /ipmi.cpp
parenta67323a86ec201d9292d2743a707ac04909615e3 (diff)
downloadphosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.tar.gz
phosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.zip
blobs: s/struct BlobMeta/BlobMeta/g
Because this structure is not anything special, simply use the cpp idiomatic way of referencing the object. Consistently, structures that are packed still have "struct" used in declarations. However, this distinction is only clear through its usage and nothing in the language. Perhaps a better approach would be notational naming struct PackedXYZ {};. However, that can get out of control quickly. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I3b7e48e4b6687ef2e15e9d07c0eeba96eb5d2552
Diffstat (limited to 'ipmi.cpp')
-rw-r--r--ipmi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipmi.cpp b/ipmi.cpp
index 92955f9..1613085 100644
--- a/ipmi.cpp
+++ b/ipmi.cpp
@@ -190,7 +190,7 @@ ipmi_ret_t deleteBlob(ManagerInterface* mgr, const uint8_t* reqBuf,
return IPMI_CC_OK;
}
-static ipmi_ret_t returnStatBlob(struct BlobMeta* meta, uint8_t* replyCmdBuf,
+static ipmi_ret_t returnStatBlob(BlobMeta* meta, uint8_t* replyCmdBuf,
size_t* dataLen)
{
struct BmcBlobStatRx reply;
@@ -227,7 +227,7 @@ ipmi_ret_t statBlob(ManagerInterface* mgr, const uint8_t* reqBuf,
}
/* Attempt to stat. */
- struct BlobMeta meta;
+ BlobMeta meta;
if (!mgr->stat(path, &meta))
{
return IPMI_CC_UNSPECIFIED_ERROR;
@@ -244,7 +244,7 @@ ipmi_ret_t sessionStatBlob(ManagerInterface* mgr, const uint8_t* reqBuf,
(*dataLen) = 0;
/* Attempt to stat. */
- struct BlobMeta meta;
+ BlobMeta meta;
if (!mgr->stat(request.sessionId, &meta))
{
OpenPOWER on IntegriCloud