summaryrefslogtreecommitdiff
path: root/ctype.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-10-15 06:25:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-10-15 21:58:16 (GMT)
commitca5ab7d1e813435bbf4ba0615a2adf0cdc35960e (patch)
treea0d1c56c7d3e2a521fe8a725f2af3edf03a83616 /ctype.c
parent82dce998c2028b6ee96691921b7037a6e182ec89 (diff)
downloadgit-ca5ab7d1e813435bbf4ba0615a2adf0cdc35960e.zip
git-ca5ab7d1e813435bbf4ba0615a2adf0cdc35960e.tar.gz
git-ca5ab7d1e813435bbf4ba0615a2adf0cdc35960e.tar.bz2
ctype: make sane_ctype[] const array
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ctype.c')
-rw-r--r--ctype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctype.c b/ctype.c
index 9353271..faeaf34 100644
--- a/ctype.c
+++ b/ctype.c
@@ -14,7 +14,7 @@ enum {
P = GIT_PATHSPEC_MAGIC /* other non-alnum, except for ] and } */
};
-unsigned char sane_ctype[256] = {
+const unsigned char sane_ctype[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, S, S, 0, 0, S, 0, 0, /* 0.. 15 */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 16.. 31 */
S, P, P, P, R, P, P, P, R, R, G, R, P, P, R, P, /* 32.. 47 */