summaryrefslogtreecommitdiff
path: root/git-compat-util.h
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 /git-compat-util.h
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 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 5bd9ad7..80767ff 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -470,7 +470,7 @@ extern const char tolower_trans_tbl[256];
#undef isupper
#undef tolower
#undef toupper
-extern unsigned char sane_ctype[256];
+extern const unsigned char sane_ctype[256];
#define GIT_SPACE 0x01
#define GIT_DIGIT 0x02
#define GIT_ALPHA 0x04