]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ctype: constify lookup table
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Oct 2010 11:17:45 +0000 (07:17 -0400)
committerWolfgang Denk <wd@denx.de>
Sun, 28 Nov 2010 20:58:29 +0000 (21:58 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/linux/ctype.h
lib/ctype.c

index afa36392297a341ce79e7d52a0231453776b7a89..6dec944a370b23d983c285002c652741dd698b53 100644 (file)
@@ -15,7 +15,7 @@
 #define _X     0x40    /* hex digit */
 #define _SP    0x80    /* hard space (0x20) */
 
-extern unsigned char _ctype[];
+extern const unsigned char _ctype[];
 
 #define __ismask(x) (_ctype[(int)(unsigned char)(x)])
 
index 6ed0468a2196763b54fa15d99a5695ffd356dc43..dffe5637248f4dbdc5826e581c0b2c186e44afed 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <linux/ctype.h>
 
-unsigned char _ctype[] = {
+const unsigned char _ctype[] = {
 _C,_C,_C,_C,_C,_C,_C,_C,                       /* 0-7 */
 _C,_C|_S,_C|_S,_C|_S,_C|_S,_C|_S,_C,_C,                /* 8-15 */
 _C,_C,_C,_C,_C,_C,_C,_C,                       /* 16-23 */