Skip to content
Snippets Groups Projects
Unverified Commit 21202e7e authored by Koen Zandberg's avatar Koen Zandberg
Browse files

gnrc/pkt: Add const keyword to length functions

parent 836fe3db
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment