From 959087f207efb6d19cd8c6bc11cff7c5610ac5c0 Mon Sep 17 00:00:00 2001
From: Martine Lenders <mail@martine-lenders.eu>
Date: Fri, 30 Nov 2018 10:01:52 +0100
Subject: [PATCH] gnrc_netif_hdr: make input parameters constant

---
 sys/include/net/gnrc/netif/hdr.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/include/net/gnrc/netif/hdr.h b/sys/include/net/gnrc/netif/hdr.h
index 28d871d1f5..7ff617de0d 100644
--- a/sys/include/net/gnrc/netif/hdr.h
+++ b/sys/include/net/gnrc/netif/hdr.h
@@ -130,7 +130,7 @@ static inline void gnrc_netif_hdr_init(gnrc_netif_hdr_t *hdr, uint8_t src_l2addr
  * @return                  the size of the given header, including link layer
  *                          addresses
  */
-static inline size_t gnrc_netif_hdr_sizeof(gnrc_netif_hdr_t *hdr)
+static inline size_t gnrc_netif_hdr_sizeof(const gnrc_netif_hdr_t *hdr)
 {
     return sizeof(gnrc_netif_hdr_t) + hdr->src_l2addr_len + hdr->dst_l2addr_len;
 }
@@ -143,7 +143,7 @@ static inline size_t gnrc_netif_hdr_sizeof(gnrc_netif_hdr_t *hdr)
  * @return                  pointer to source address on success
  * @return                  NULL on error
  */
-static inline uint8_t *gnrc_netif_hdr_get_src_addr(gnrc_netif_hdr_t *hdr)
+static inline uint8_t *gnrc_netif_hdr_get_src_addr(const gnrc_netif_hdr_t *hdr)
 {
     return ((uint8_t *)(hdr + 1));
 }
@@ -174,7 +174,7 @@ static inline void gnrc_netif_hdr_set_src_addr(gnrc_netif_hdr_t *hdr, uint8_t *a
  * @return                  pointer to destination address on success
  * @return                  NULL on error
  */
-static inline uint8_t *gnrc_netif_hdr_get_dst_addr(gnrc_netif_hdr_t *hdr)
+static inline uint8_t *gnrc_netif_hdr_get_dst_addr(const gnrc_netif_hdr_t *hdr)
 {
     return (((uint8_t *)(hdr + 1)) + hdr->src_l2addr_len);
 }
-- 
GitLab