From b132d11762771daaca4f77e6875bf8a967148de8 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 16 Feb 2021 11:22:31 -0800 Subject: [PATCH] [coap] remove use of `nullptr` in coap.h (#6173) --- include/openthread/coap.h | 7 ++++--- include/openthread/instance.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/openthread/coap.h b/include/openthread/coap.h index 2214c0042..2a2df22ae 100644 --- a/include/openthread/coap.h +++ b/include/openthread/coap.h @@ -943,7 +943,8 @@ static inline otError otCoapSendRequestBlockWise(otInstance * aIn otCoapBlockwiseTransmitHook aTransmitHook, otCoapBlockwiseReceiveHook aReceiveHook) { - return otCoapSendRequestBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, nullptr, + // NOLINTNEXTLINE(modernize-use-nullptr) + return otCoapSendRequestBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL, aTransmitHook, aReceiveHook); } @@ -1104,8 +1105,8 @@ static inline otError otCoapSendResponseBlockWise(otInstance * aI void * aContext, otCoapBlockwiseTransmitHook aTransmitHook) { - return otCoapSendResponseBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, nullptr, aContext, - aTransmitHook); + // NOLINTNEXTLINE(modernize-use-nullptr) + return otCoapSendResponseBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, NULL, aContext, aTransmitHook); } /** diff --git a/include/openthread/instance.h b/include/openthread/instance.h index d7143ee25..5dd3b839c 100644 --- a/include/openthread/instance.h +++ b/include/openthread/instance.h @@ -53,7 +53,7 @@ extern "C" { * @note This number versions both OpenThread platform and user APIs. * */ -#define OPENTHREAD_API_VERSION (70) +#define OPENTHREAD_API_VERSION (71) /** * @addtogroup api-instance