From 3863be7af1362e7e2829b5eb7c0bdfdbd7ea6f04 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 11 Aug 2016 14:16:56 -0700 Subject: [PATCH] Update return type for network id timeout to unit8_t. (#363) --- include/openthread.h | 2 +- src/core/openthread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/openthread.h b/include/openthread.h index 55bf8eaeb..1a136614c 100644 --- a/include/openthread.h +++ b/include/openthread.h @@ -841,7 +841,7 @@ void otSetKeySequenceCounter(uint32_t aKeySequenceCounter); * * @sa otSetNetworkIdTimeout */ -uint32_t otGetNetworkIdTimeout(void); +uint8_t otGetNetworkIdTimeout(void); /** * Set the NETWORK_ID_TIMEOUT parameter used in the Leader role. diff --git a/src/core/openthread.cpp b/src/core/openthread.cpp index 90f0531ef..b25dcc4c5 100644 --- a/src/core/openthread.cpp +++ b/src/core/openthread.cpp @@ -391,7 +391,7 @@ void otSetKeySequenceCounter(uint32_t aKeySequenceCounter) sThreadNetif->GetKeyManager().SetCurrentKeySequence(aKeySequenceCounter); } -uint32_t otGetNetworkIdTimeout(void) +uint8_t otGetNetworkIdTimeout(void) { return sThreadNetif->GetMle().GetNetworkIdTimeout(); }