Skip to content

Commit

Permalink
Update sys/include/net/nanocoap.h
Browse files Browse the repository at this point in the history
Co-authored-by: benpicco <[email protected]>
  • Loading branch information
maribu and benpicco authored Jan 10, 2025
1 parent 20d7bd3 commit 14d3575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/include/net/nanocoap.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static inline size_t coap_hdr_get_token_len(const coap_hdr_t *hdr)
* @ref coap_get_token instead. In the TX path the token was
* added by us, so we really should know.
*/
static inline void * coap_hdr_get_token(coap_hdr_t *hdr)
static inline const void * coap_hdr_get_token(const coap_hdr_t *hdr)
{
uint8_t *token = (void *)hdr;
token += sizeof(*hdr) + coap_hdr_tkl_ext_len(hdr);
Expand Down

0 comments on commit 14d3575

Please sign in to comment.