Skip to content
Snippets Groups Projects
Unverified Commit 93d33939 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-web: make buf_length() argument const

parent 26816220
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ bool buf_append(struct template_buffer *buf, const char *s, size_t len); ...@@ -37,7 +37,7 @@ bool buf_append(struct template_buffer *buf, const char *s, size_t len);
char * buf_destroy(struct template_buffer *buf); char * buf_destroy(struct template_buffer *buf);
/* read buffer length */ /* 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; return buf->dptr - buf->data;
} }
......
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