From 2e54ca525202824d25f2e1c0d5144a47aed567eb Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 21 Apr 2021 14:38:16 +0200 Subject: [PATCH] pdu.[hc]: make token argument const in coap_pdu_duplicate() --- include/coap3/pdu.h | 2 +- src/pdu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/coap3/pdu.h b/include/coap3/pdu.h index e78c902c..0cb34568 100644 --- a/include/coap3/pdu.h +++ b/include/coap3/pdu.h @@ -390,7 +390,7 @@ coap_pdu_t * coap_pdu_duplicate(const coap_pdu_t *old_pdu, coap_session_t *session, size_t token_length, - uint8_t *token, + const uint8_t *token, coap_opt_filter_t *drop_options); /** diff --git a/src/pdu.c b/src/pdu.c index b561ff74..feca42f2 100644 --- a/src/pdu.c +++ b/src/pdu.c @@ -153,7 +153,7 @@ coap_pdu_t * coap_pdu_duplicate(const coap_pdu_t *old_pdu, coap_session_t *session, size_t token_length, - uint8_t *token, + const uint8_t *token, coap_opt_filter_t *drop_options) { coap_pdu_t *pdu = coap_pdu_init(old_pdu->type, old_pdu->code,