From 102c677e23a8f6474369f12b92c808ff6074ec22 Mon Sep 17 00:00:00 2001 From: Giedrius Date: Tue, 14 Feb 2017 20:05:26 +0200 Subject: [PATCH] Fix CoAP API function name mismatch (#1317) Refractor in implementation: * otCoapGetCurrentOption => otCoapHeaderGetCurrentOption * otCoapGetNextOption => otCoapHeaderGetNextOption --- src/core/openthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/openthread.cpp b/src/core/openthread.cpp index e263babb8..e5dd730d4 100644 --- a/src/core/openthread.cpp +++ b/src/core/openthread.cpp @@ -1896,12 +1896,12 @@ const uint8_t *otCoapHeaderGetToken(const otCoapHeader *aHeader) return static_cast(aHeader)->GetToken(); } -const otCoapOption *otCoapGetCurrentOption(const otCoapHeader *aHeader) +const otCoapOption *otCoapHeaderGetCurrentOption(const otCoapHeader *aHeader) { return static_cast(static_cast(aHeader)->GetCurrentOption()); } -const otCoapOption *otCoapGetNextOption(otCoapHeader *aHeader) +const otCoapOption *otCoapHeaderGetNextOption(otCoapHeader *aHeader) { return static_cast(static_cast(aHeader)->GetNextOption()); }