summaryrefslogtreecommitdiff
path: root/redfish-core/lib/update_service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r--redfish-core/lib/update_service.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 650ba95622..59b2b3b8b5 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -212,7 +212,6 @@ static void
iface ==
"xyz.openbmc_project.Software.ActivationProgress")
{
-
const uint8_t* progress = nullptr;
for (const auto& property : values)
{
@@ -538,8 +537,8 @@ inline void uploadImageFile(crow::Response& res, std::string_view body)
std::ofstream out(filepath, std::ofstream::out | std::ofstream::binary |
std::ofstream::trunc);
// set the permission of the file to 640
- std::filesystem::perms permission =
- std::filesystem::perms::owner_read | std::filesystem::perms::group_read;
+ std::filesystem::perms permission = std::filesystem::perms::owner_read |
+ std::filesystem::perms::group_read;
std::filesystem::permissions(filepath, permission);
out << body;
@@ -616,7 +615,7 @@ inline void
continue;
}
- for (auto const& param :
+ for (const auto& param :
boost::beast::http::param_list{it->value().substr(index)})
{
if (param.first != "name" || param.second.empty())