From 26eec4478f6ed63404923ad4f3bf25f411a61d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 Sep 2020 10:42:44 +0200 Subject: text: mark text_size argument as const --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.c') diff --git a/text.c b/text.c index eb4058d..096a8b7 100644 --- a/text.c +++ b/text.c @@ -1641,7 +1641,7 @@ char *text_bytes_alloc0(const Text *txt, size_t pos, size_t len) { return buf; } -size_t text_size(Text *txt) { +size_t text_size(const Text *txt) { return txt->size; } -- cgit v1.2.3