From 8bc117792fbf118dd74d015546c22612961ccc26 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Tue, 4 Jun 2019 07:20:24 -0700 Subject: 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 Change-Id: I3b7e48e4b6687ef2e15e9d07c0eeba96eb5d2552 --- ipmi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipmi.cpp') 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)) { -- cgit v1.2.3