From 4bfd87ffa2d333da32214eb9e0bc5ede5e00006b Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 20 Oct 2023 15:10:38 +0200 Subject: [PATCH] nanocoap: rename coap_get_code() -> coap_get_code_decimal() --- 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 c92b3f4e25..3c16df65e3 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -482,7 +482,7 @@ static inline unsigned coap_get_code_detail(const coap_pkt_t *pkt) * * @returns message code in decimal format */ -static inline unsigned coap_get_code(const coap_pkt_t *pkt) +static inline unsigned coap_get_code_decimal(const coap_pkt_t *pkt) { return (coap_get_code_class(pkt) * 100) + coap_get_code_detail(pkt); }