diff --git a/implementation/configuration/include/internal.hpp.in b/implementation/configuration/include/internal.hpp.in index a2b5cb93c..a0b9bf2f8 100644 --- a/implementation/configuration/include/internal.hpp.in +++ b/implementation/configuration/include/internal.hpp.in @@ -160,8 +160,8 @@ inline constexpr std::uint32_t MAX_RECONNECTS_UNLIMITED = (std::numeric_limits::max)(); +inline constexpr gid_t ANY_GID = (std::numeric_limits::max)(); enum class port_type_e { PT_OPTIONAL, @@ -171,7 +171,7 @@ enum class port_type_e { }; using partition_id_t = std::uint8_t; -const partition_id_t VSOMEIP_DEFAULT_PARTITION_ID = 0; +inline constexpr partition_id_t VSOMEIP_DEFAULT_PARTITION_ID = 0; } // namespace vsomeip_v3 diff --git a/test/unit_tests/security_tests/ut_is_client_allowed.cpp b/test/unit_tests/security_tests/ut_is_client_allowed.cpp index bd6f72f07..c00afebdc 100644 --- a/test/unit_tests/security_tests/ut_is_client_allowed.cpp +++ b/test/unit_tests/security_tests/ut_is_client_allowed.cpp @@ -22,8 +22,8 @@ namespace { vsomeip_v3::gid_t invalid_uid = 1; vsomeip_v3::gid_t invalid_gid = 1; - vsomeip_v3::uid_t ANY_UID = 0xFFFFFFFF; - vsomeip_v3::gid_t ANY_GID = 0xFFFFFFFF; + vsomeip_v3::uid_t ANY_UID = std::numeric_limits::max(); + vsomeip_v3::gid_t ANY_GID = std::numeric_limits::max(); vsomeip_v3::gid_t deny_uid = 9999; vsomeip_v3::gid_t deny_gid = 9999;