From e4558664a8ef1bded10a55b2d8689140efc2a8c8 Mon Sep 17 00:00:00 2001 From: Esko Dijk Date: Fri, 16 Aug 2024 21:19:23 +0200 Subject: [PATCH] [coap] fixes in parameter name and in comments. (#10615) --- src/core/coap/coap.cpp | 4 ++-- src/core/coap/coap.hpp | 2 +- src/core/coap/coap_message.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/coap/coap.cpp b/src/core/coap/coap.cpp index 38ba54e9b..33369a327 100644 --- a/src/core/coap/coap.cpp +++ b/src/core/coap/coap.cpp @@ -160,13 +160,13 @@ exit: return aMessage; } -Message *CoapBase::InitResponse(Message *aMessage, const Message &aResponse) +Message *CoapBase::InitResponse(Message *aMessage, const Message &aRequest) { Error error = kErrorNone; VerifyOrExit(aMessage != nullptr); - SuccessOrExit(error = aMessage->SetDefaultResponseHeader(aResponse)); + SuccessOrExit(error = aMessage->SetDefaultResponseHeader(aRequest)); SuccessOrExit(error = aMessage->SetPayloadMarker()); exit: diff --git a/src/core/coap/coap.hpp b/src/core/coap/coap.hpp index aeae3bb74..968c845ca 100644 --- a/src/core/coap/coap.hpp +++ b/src/core/coap/coap.hpp @@ -887,7 +887,7 @@ private: }; Message *InitMessage(Message *aMessage, Type aType, Uri aUri); - Message *InitResponse(Message *aMessage, const Message &aResponse); + Message *InitResponse(Message *aMessage, const Message &aRequest); static void HandleRetransmissionTimer(Timer &aTimer); void HandleRetransmissionTimer(void); diff --git a/src/core/coap/coap_message.hpp b/src/core/coap/coap_message.hpp index 6156df8ce..f985ff731 100644 --- a/src/core/coap/coap_message.hpp +++ b/src/core/coap/coap_message.hpp @@ -777,7 +777,7 @@ public: bool IsReset(void) const { return (GetType() == kTypeReset); } /** - * Indicates whether or not the header is a confirmable Put request (i.e, `kTypeConfirmable` with + * Indicates whether or not the header is a confirmable Post request (i.e, `kTypeConfirmable` with * `kCodePost`). * * @retval TRUE Message is a confirmable Post request. @@ -787,7 +787,7 @@ public: bool IsConfirmablePostRequest(void) const; /** - * Indicates whether or not the header is a non-confirmable Put request (i.e, `kTypeNonConfirmable` with + * Indicates whether or not the header is a non-confirmable Post request (i.e, `kTypeNonConfirmable` with * `kCodePost`). * * @retval TRUE Message is a non-confirmable Post request.