Skip to content

Commit

Permalink
Merge pull request #20518 from miri64/gcoap/bug/quality-defects
Browse files Browse the repository at this point in the history
gcoap: fix code quality defects
  • Loading branch information
miri64 authored Mar 28, 2024
2 parents 6c46d26 + c05474c commit 819a4a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sys/include/net/gcoap.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ typedef int (*gcoap_request_matcher_t)(gcoap_listener_t *listener,
* @brief CoAP socket types
*
* May be used as flags for @ref gcoap_listener_t, but must be used numerically
* with @ref gcoap_req_send_tl().
* with @ref gcoap_req_send().
*/
typedef enum {
GCOAP_SOCKET_TYPE_UNDEF = 0x0, /**< undefined */
Expand Down Expand Up @@ -980,9 +980,9 @@ static inline ssize_t gcoap_request(coap_pkt_t *pdu, uint8_t *buf, size_t len,
* @return 0 if cannot send
*/
ssize_t gcoap_req_send(const uint8_t *buf, size_t len,
const sock_udp_ep_t *remote,
gcoap_resp_handler_t resp_handler, void *context,
gcoap_socket_type_t tl_type);
const sock_udp_ep_t *remote,
gcoap_resp_handler_t resp_handler, void *context,
gcoap_socket_type_t tl_type);

/**
* @brief Sends a buffer containing a CoAP request to the provided endpoint
Expand All @@ -1005,9 +1005,9 @@ ssize_t gcoap_req_send(const uint8_t *buf, size_t len,
* @return 0 if cannot send
*/
static inline ssize_t gcoap_req_send_tl(const uint8_t *buf, size_t len,
const sock_udp_ep_t *remote,
gcoap_resp_handler_t resp_handler, void *context,
gcoap_socket_type_t tl_type)
const sock_udp_ep_t *remote,
gcoap_resp_handler_t resp_handler, void *context,
gcoap_socket_type_t tl_type)
{
return gcoap_req_send(buf, len, remote, resp_handler, context, tl_type);
}
Expand Down

0 comments on commit 819a4a1

Please sign in to comment.