1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

nanocoap: constify coap_match_path() API

This commit is contained in:
Fabian Hüßler 2024-08-01 11:27:55 +02:00
parent 08f6ec49c4
commit c1535d25ba
2 changed files with 2 additions and 2 deletions

View File

@ -2245,7 +2245,7 @@ extern ssize_t coap_well_known_core_default_handler(coap_pkt_t *pkt, \
* @return <0 if the resource path sorts before the URI
* @return >0 if the resource path sorts after the URI
*/
int coap_match_path(const coap_resource_t *resource, uint8_t *uri);
int coap_match_path(const coap_resource_t *resource, const uint8_t *uri);
#if defined(MODULE_GCOAP) || defined(DOXYGEN)
/**

View File

@ -184,7 +184,7 @@ int coap_parse(coap_pkt_t *pkt, uint8_t *buf, size_t len)
return 0;
}
int coap_match_path(const coap_resource_t *resource, uint8_t *uri)
int coap_match_path(const coap_resource_t *resource, const uint8_t *uri)
{
assert(resource && uri);
int res;