From 89677f14399057b96ca12e901e045db61e379931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 Sep 2020 10:58:19 +0200 Subject: text: mark text_mmaped 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 b5c552e..3fcc1d0 100644 --- a/text.c +++ b/text.c @@ -1379,7 +1379,7 @@ bool text_modified(const Text *txt) { return txt->saved_revision != txt->history; } -bool text_mmaped(Text *txt, const char *ptr) { +bool text_mmaped(const Text *txt, const char *ptr) { uintptr_t addr = (uintptr_t)ptr; for (size_t i = 0, len = array_length(&txt->blocks); i < len; i++) { Block *blk = array_get_ptr(&txt->blocks, i); -- cgit v1.2.3