Mercurial > paster
diff page-index.c @ 82:0a29424e4486
pasterd: use constant filenames
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 17 Mar 2023 19:45:00 +0100 |
parents | 1ffe2f5a8500 |
children | 94dcca86e5cc |
line wrap: on
line diff
--- a/page-index.c Fri Mar 17 07:56:01 2023 +0100 +++ b/page-index.c Fri Mar 17 19:45:00 2023 +0100 @@ -25,8 +25,9 @@ #include "paste.h" #include "util.h" -#define LIMIT 16 -#define TITLE "paster -- recent pastes" +#define TITLE "paster -- recent pastes" +#define HTML "index.html" +#define LIMIT 16 struct page { struct kreq *req; @@ -133,7 +134,7 @@ .pastesz = pastesz }; - page(req, KHTTP_200, TITLE, "index.html", &self.template); + page(req, KHTTP_200, TITLE, HTML, &self.template); } void