kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 5ddfc2131c520a35c34d998bb58985b6fcba5b2a
parent 5e21de3a4c621b3ade384ec9a272eadb41c4acab
Author: Daniel Fahlgren <daniel@fahlgren.se>
Date:   Wed, 17 Aug 2022 13:16:21 +0200

Constify filemap_entry argument to filemap_serve()

Diffstat:
src/filemap.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/filemap.c b/src/filemap.c @@ -39,7 +39,7 @@ struct filemap_entry { int filemap_resolve(struct http_request *); -static void filemap_serve(struct http_request *, struct filemap_entry *); +static void filemap_serve(struct http_request *, const struct filemap_entry *); static TAILQ_HEAD(, filemap_entry) maps; @@ -177,7 +177,7 @@ filemap_resolve(struct http_request *req) } static void -filemap_serve(struct http_request *req, struct filemap_entry *map) +filemap_serve(struct http_request *req, const struct filemap_entry *map) { struct stat st; struct connection *c;