Skip to content
Snippets Groups Projects
Commit 543f0a38 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

ctype: constify lookup table

parent 7edb186f
No related branches found
No related tags found
No related merge requests found
......@@ -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)])
......
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment