summaryrefslogtreecommitdiffstats
path: root/redfish-core/include
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-03-25 19:25:26 +0000
committerEd Tanous <ed.tanous@intel.com>2019-03-25 19:25:26 +0000
commitb01bf2991955ef267ce2be8e7a18eac984990de8 (patch)
treef34f5fe0ce9c786ddee196f5082e46090c0ccfcf /redfish-core/include
parent6ea007a2faec52ad62680015d2a3f00371a1e351 (diff)
downloadbmcweb-b01bf2991955ef267ce2be8e7a18eac984990de8.tar.gz
bmcweb-b01bf2991955ef267ce2be8e7a18eac984990de8.zip
Revert "bmcweb: Fix a bunch of warnings"
This reverts commit 6ea007a2faec52ad62680015d2a3f00371a1e351. Reason for revert: Reports of bmcweb seg faults. Change-Id: I408f1bb29c2f8e427a6621cdaac8c31b847ebf06
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/privileges.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp
index 15e1af4..3b20c9f 100644
--- a/redfish-core/include/privileges.hpp
+++ b/redfish-core/include/privileges.hpp
@@ -34,10 +34,10 @@ constexpr std::array<const char*, 5> basePrivileges{
"Login", "ConfigureManager", "ConfigureComponents", "ConfigureSelf",
"ConfigureUsers"};
-constexpr const size_t basePrivilegeCount = basePrivileges.size();
+constexpr const int basePrivilegeCount = basePrivileges.size();
/** @brief Max number of privileges per type */
-constexpr const size_t maxPrivilegeCount = 32;
+constexpr const int maxPrivilegeCount = 32;
/** @brief A vector of all privilege names and their indexes */
static const std::vector<std::string> privilegeNames{basePrivileges.begin(),
@@ -96,7 +96,7 @@ class Privileges
*/
bool setSinglePrivilege(const char* privilege)
{
- for (size_t searchIndex = 0; searchIndex < privilegeNames.size();
+ for (int searchIndex = 0; searchIndex < privilegeNames.size();
searchIndex++)
{
if (privilege == privilegeNames[searchIndex])
@@ -136,8 +136,8 @@ class Privileges
{
std::vector<const std::string*> activePrivileges;
- size_t searchIndex = 0;
- size_t endIndex = basePrivilegeCount;
+ int searchIndex = 0;
+ int endIndex = basePrivilegeCount;
if (type == PrivilegeType::OEM)
{
searchIndex = basePrivilegeCount - 1;
OpenPOWER on IntegriCloud