From 93d3393993c24dc18906dd0ee86198a9ce800ebd Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Fri, 23 Feb 2018 02:08:11 +0100
Subject: [PATCH] gluon-web: make buf_length() argument const

---
 package/gluon-web/src/template_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-web/src/template_utils.h b/package/gluon-web/src/template_utils.h
index 5708bfd37..35bf706d6 100644
--- a/package/gluon-web/src/template_utils.h
+++ b/package/gluon-web/src/template_utils.h
@@ -37,7 +37,7 @@ bool buf_append(struct template_buffer *buf, const char *s, size_t len);
 char * buf_destroy(struct template_buffer *buf);
 
 /* read buffer length */
-static inline size_t buf_length(struct template_buffer *buf)
+static inline size_t buf_length(const struct template_buffer *buf)
 {
 	return buf->dptr - buf->data;
 }
-- 
GitLab