From 9e1fa5957c79d7be5fa804f2a2d6137ab1532f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Thu, 25 Oct 2018 19:21:34 +0200 Subject: [PATCH] [coap] remove unneeded namespace binding (#3207) --- src/core/coap/coap_header.cpp | 10 +++++----- src/core/coap/coap_header.hpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/coap/coap_header.cpp b/src/core/coap/coap_header.cpp index e0e2e4a77..052efcfe3 100644 --- a/src/core/coap/coap_header.cpp +++ b/src/core/coap/coap_header.cpp @@ -282,10 +282,10 @@ otError Header::AppendObserveOption(uint32_t aObserve) otError Header::AppendUriPathOptions(const char *aUriPath) { - otError error = OT_ERROR_NONE; - const char * cur = aUriPath; - const char * end; - Header::Option coapOption; + otError error = OT_ERROR_NONE; + const char *cur = aUriPath; + const char *end; + Option coapOption; coapOption.mNumber = OT_COAP_OPTION_URI_PATH; @@ -397,7 +397,7 @@ const Header::Option *Header::GetNextOption(void) mOption.mLength = optionLength; mOption.mValue = mHeader.mBytes + mNextOptionOffset; mNextOptionOffset += optionLength; - rval = static_cast(&mOption); + rval = static_cast