gluon-web: make buf_length() argument const

This commit is contained in:
Matthias Schiffer 2018-02-23 02:08:11 +01:00
parent 2681622018
commit 93d3393993
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -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;
}