summaryrefslogtreecommitdiff
path: root/template.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-05 12:58:22 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-06 12:22:20 +0200
commit35a145fd161fb4d4f19aa9820b50438695b94414 (patch)
tree00e9f341d5b7e0a6874efbe9fafc0500cf13cd2d /template.c
parent9b8d38ab209c6e7e747d6d420f1b105fe858c7eb (diff)
browse: add upload button
Diffstat (limited to 'template.c')
-rw-r--r--template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/template.c b/template.c
index f6a55b2..4ac3e9f 100644
--- a/template.c
+++ b/template.c
@@ -43,7 +43,7 @@
* to be used in case of success).
*/
static int
-read_file(char *path, char **output, size_t * read_size)
+read_file(const char *path, char **output, size_t * read_size)
{
long file_size;
FILE *fp;
@@ -82,7 +82,7 @@ read_file(char *path, char **output, size_t * read_size)
}
struct page_template *
-page_template_new(char *page)
+page_template_new(const char *page)
{
struct page_template *tmpl;
char template_path[PATH_MAX];