1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc/pkt: Add const keyword to length functions

This commit is contained in:
Koen Zandberg 2018-11-16 15:06:39 +01:00
parent 836fe3dbba
commit 21202e7e18
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -129,7 +129,7 @@ typedef struct gnrc_pktsnip {
*
* @return length of the list of headers.
*/
static inline size_t gnrc_pkt_len(gnrc_pktsnip_t *pkt)
static inline size_t gnrc_pkt_len(const gnrc_pktsnip_t *pkt)
{
size_t len = 0;
@ -149,7 +149,7 @@ static inline size_t gnrc_pkt_len(gnrc_pktsnip_t *pkt)
*
* @return length of the list of headers.
*/
static inline size_t gnrc_pkt_len_upto(gnrc_pktsnip_t *pkt, gnrc_nettype_t type)
static inline size_t gnrc_pkt_len_upto(const gnrc_pktsnip_t *pkt, gnrc_nettype_t type)
{
size_t len = 0;