From f73bd1a104ebfe424bec72a97d51bfa64064892c Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Mon, 16 May 2022 10:47:24 +0100 Subject: Make buffers that are read from `const`-correct --- src/metaentry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/metaentry.c') diff --git a/src/metaentry.c b/src/metaentry.c index a26c764..891e0c4 100644 --- a/src/metaentry.c +++ b/src/metaentry.c @@ -451,8 +451,8 @@ mentries_fromfile(struct metahash **mhash, const char *path) { struct metaentry *mentry; char *mmapstart; - char *ptr; - char *max; + char const *ptr; + char const *max; int fd; struct stat sbuf; unsigned i; -- cgit v1.2.1