diff options
author | Adam Spragg <adam@spra.gg> | 2022-05-16 10:47:24 +0100 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2022-05-18 17:19:40 +0100 |
commit | f73bd1a104ebfe424bec72a97d51bfa64064892c (patch) | |
tree | 3ae2c95cd979f786f59a5288287c3429f6108323 /src/metaentry.c | |
parent | 527214c7ee648cccbe4abbb11bde298b7b52141b (diff) |
Make buffers that are read from `const`-correct
Diffstat (limited to 'src/metaentry.c')
-rw-r--r-- | src/metaentry.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |