mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 13:10:08 +00:00
[style] remove usage of std::numeric_limits (#5487)
This replaces the usage of std::numeric_limits with C macro UINT32_MAX. Removes the dependency of C++ header limits, which isn't available on some platforms.
This commit is contained in:
@@ -33,8 +33,6 @@
|
|||||||
|
|
||||||
#include "bbr_manager.hpp"
|
#include "bbr_manager.hpp"
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
||||||
|
|
||||||
#include "common/code_utils.hpp"
|
#include "common/code_utils.hpp"
|
||||||
@@ -160,7 +158,7 @@ void Manager::HandleMulticastListenerRegistration(const Coap::Message &aMessage,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
VerifyOrExit(timeout < std::numeric_limits<uint32_t>::max(), status = ThreadStatusTlv::kMlrNoPersistent);
|
VerifyOrExit(timeout < UINT32_MAX, status = ThreadStatusTlv::kMlrNoPersistent);
|
||||||
|
|
||||||
if (timeout != 0)
|
if (timeout != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user