Commit Diff


commit - 486bde7d965b776a646acd77807b514f3e16537c
commit + 21268f10931a6c0ffd0b919e093a43dc31d86bb8
blob - 9742dfe81e28da1cd69fdc3192f2bcf0c8789358
blob + b5b0ce30c0a1bac67fb51bddc552379a702f0577
--- fs.c
+++ fs.c
@@ -151,7 +151,7 @@ is_dir(FILE *fp)
 static parserinit
 file_type(const char *path)
 {
-	struct mapping {
+	const struct mapping {
 		const char	*ext;
 		parserinit	 fn;
 	} ms[] = {
@@ -163,7 +163,7 @@ file_type(const char *path)
 		{"patch",	gemtext_initparser},
 		{NULL, NULL},
 	}, *m;
-	char *dot;
+	const char *dot;
 
 	if ((dot = strrchr(path, '.')) == NULL)
 		return textplain_initparser;