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:
parent
08f6ec49c4
commit
c1535d25ba
@ -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)
|
||||
/**
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user