From 178cb6a2b42ba993499fe69d41ce6997c00e5af5 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 10 Jan 2025 17:28:34 +0100 Subject: [PATCH] Update sys/include/net/nanocoap.h Co-authored-by: benpicco --- sys/include/net/nanocoap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 347597e3c4c3..ad8d27621330 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -594,7 +594,7 @@ static inline void *coap_get_token_from_udp_buf(const void *buf) * @pre This assumes that the buffer has already been validated (e.g. using * @ref coap_udp_parse). */ -static inline size_t coap_get_token_len_from_udp_buf(const uint8_t *buf) +static inline size_t coap_get_token_len_from_udp_buf(const void *buf) { coap_udp_hdr_t *hdr = (void *)buf; uint8_t tkl = hdr->ver_t_tkl & 0xf;