Constify filemap_entry argument to filemap_serve()

This commit is contained in:
Daniel Fahlgren 2022-08-17 13:16:21 +02:00 committed by Joris Vink
parent 5e21de3a4c
commit 5ddfc2131c
1 changed files with 2 additions and 2 deletions

View File

@ -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;