Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7707e61c authored by André Goddard Rosa's avatar André Goddard Rosa Committed by Linus Torvalds
Browse files

ctype: constify read-only _ctype string



While at it, use tabs to indent the comments.

Signed-off-by: default avatarAndré Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 922ac25c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)])

+25 −25
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
#include <linux/ctype.h>
#include <linux/module.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 */