Commit f134ecfdc329a401e2e93407cce94733515f16fb

Christian Weisgerber 2022-03-19T21:25:59

const-ify string table

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/repository.c b/lib/repository.c
index 83c3cd0..634a1c3 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -642,7 +642,7 @@ read_gotconfig(struct got_repository *repo)
 }
 
 /* Supported repository format extensions. */
-static const char *repo_extensions[] = {
+static const char *const repo_extensions[] = {
 	"noop",			/* Got supports repository format version 1. */
 	"preciousObjects",	/* Supported by gotadmin cleanup. */
 	"worktreeConfig",	/* Got does not care about Git work trees. */