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,