From 21202e7e183f83a38c9f71cd0d3677fee86a3603 Mon Sep 17 00:00:00 2001
From: Koen Zandberg <koen@bergzand.net>
Date: Fri, 16 Nov 2018 15:06:39 +0100
Subject: [PATCH] gnrc/pkt: Add const keyword to length functions

---
 sys/include/net/gnrc/pkt.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/include/net/gnrc/pkt.h b/sys/include/net/gnrc/pkt.h
index 07eb593c4c..74f19fd93a 100644
--- a/sys/include/net/gnrc/pkt.h
+++ b/sys/include/net/gnrc/pkt.h
@@ -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;
 
-- 
GitLab