1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

nanocoap: rename coap_get_uri_query() -> coap_get_uri_query_string()

Free up the name for a function that will do something actually useful
This commit is contained in:
Benjamin Valentin 2023-12-19 14:00:55 +01:00
parent f56edf5849
commit a1c3d5a4ea

View File

@ -854,7 +854,8 @@ static inline ssize_t coap_get_uri_path(coap_pkt_t *pkt, uint8_t *target)
* @returns -ENOSPC if URI option is larger than @p max_len
* @returns nr of bytes written to @p target (including '\0')
*/
static inline ssize_t coap_get_uri_query(coap_pkt_t *pkt, char *target, size_t max_len)
static inline ssize_t coap_get_uri_query_string(coap_pkt_t *pkt, char *target,
size_t max_len)
{
return coap_opt_get_string(pkt, COAP_OPT_URI_QUERY,
(uint8_t *)target, max_len, '&');