From a11f817604fe07671a00ea67c67e5fb223d62ae3 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Thu, 25 Apr 2019 13:40:32 +0200 Subject: [PATCH] gcoap: rename gcoap_req_send2() to gcoap_req_send() --- sys/include/net/gcoap.h | 6 +++--- sys/net/application_layer/gcoap/gcoap.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/include/net/gcoap.h b/sys/include/net/gcoap.h index 9f0c62217d..876b724aab 100644 --- a/sys/include/net/gcoap.h +++ b/sys/include/net/gcoap.h @@ -592,9 +592,9 @@ static inline ssize_t gcoap_request(coap_pkt_t *pdu, uint8_t *buf, size_t len, * @return length of the packet * @return 0 if cannot send */ -size_t gcoap_req_send2(const uint8_t *buf, size_t len, - const sock_udp_ep_t *remote, - gcoap_resp_handler_t resp_handler); +size_t gcoap_req_send(const uint8_t *buf, size_t len, + const sock_udp_ep_t *remote, + gcoap_resp_handler_t resp_handler); /** * @brief Initializes a CoAP response packet on a buffer diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index 1d58151643..33a3fd67cd 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -707,9 +707,9 @@ ssize_t gcoap_finish(coap_pkt_t *pdu, size_t payload_len, unsigned format) return pdu->payload_len + (pdu->payload - (uint8_t *)pdu->hdr); } -size_t gcoap_req_send2(const uint8_t *buf, size_t len, - const sock_udp_ep_t *remote, - gcoap_resp_handler_t resp_handler) +size_t gcoap_req_send(const uint8_t *buf, size_t len, + const sock_udp_ep_t *remote, + gcoap_resp_handler_t resp_handler) { gcoap_request_memo_t *memo = NULL; unsigned msg_type = (*buf & 0x30) >> 4;