diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/include/asm/ctype.h | 2 | ||||
-rw-r--r-- | firmware/lib/ctype.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/asm/ctype.h b/firmware/include/asm/ctype.h index afa3639..6dec944 100644 --- a/firmware/include/asm/ctype.h +++ b/firmware/include/asm/ctype.h @@ -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)]) diff --git a/firmware/lib/ctype.c b/firmware/lib/ctype.c index 6ec51cc..cc6f077 100644 --- a/firmware/lib/ctype.c +++ b/firmware/lib/ctype.c @@ -6,7 +6,7 @@ #include <asm/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 */ |