[posix] fix macro typo (#5860)

This commit is contained in:
Simon Lin
2020-11-25 00:34:11 -08:00
committed by GitHub
parent c821b3854f
commit 9ab50c094d
+2 -2
View File
@@ -46,7 +46,7 @@
#include "common/code_utils.hpp"
#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE
#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
static void processStateChange(otChangedFlags aFlags, void *aContext)
{
otInstance *instance = static_cast<otInstance *>(aContext);
@@ -100,7 +100,7 @@ otInstance *otSysInit(otPlatformConfig *aPlatformConfig)
platformUdpInit(aPlatformConfig->mInterfaceName);
#endif
#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE
#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
SuccessOrDie(otSetStateChangedCallback(instance, processStateChange, instance));
#endif