[coap] fixes in parameter name and in comments. (#10615)

This commit is contained in:
Esko Dijk
2024-08-16 12:19:23 -07:00
committed by GitHub
parent d0895415da
commit e4558664a8
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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:
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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.