[coap] remove use of nullptr in coap.h (#6173)

This commit is contained in:
Jonathan Hui
2021-02-16 11:22:31 -08:00
committed by GitHub
parent 30e2a9ee44
commit b132d11762
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -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);
}
/**
+1 -1
View File
@@ -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