[api] add return code to otCoapHeaderSetPayloadMarker (#3004)

This commit is contained in:
Giedrius
2018-08-29 09:59:02 -07:00
committed by Jonathan Hui
parent c2f32e3df8
commit b5ce567ffd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ otError otCoapHeaderAppendUriQueryOption(otCoapHeader *aHeader, const char *aUri
* @retval OT_ERROR_NO_BUFS Header Payload Marker exceeds the buffer size.
*
*/
void otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader);
otError otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader);
/**
* This function sets the Message ID value.
+2 -2
View File
@@ -93,9 +93,9 @@ otError otCoapHeaderAppendUriQueryOption(otCoapHeader *aHeader, const char *aUri
return static_cast<Coap::Header *>(aHeader)->AppendUriQueryOption(aUriQuery);
}
void otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader)
otError otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader)
{
static_cast<Coap::Header *>(aHeader)->SetPayloadMarker();
return static_cast<Coap::Header *>(aHeader)->SetPayloadMarker();
}
void otCoapHeaderSetMessageId(otCoapHeader *aHeader, uint16_t aMessageId)