diff mbox

[U-Boot] ctype: constify lookup table

Message ID 1287573465-6697-1-git-send-email-vapier@gentoo.org
State Accepted
Commit 543f0a3819a9af130f3f80a660099fad8d2d4b8e
Delegated to: Wolfgang Denk
Headers show

Commit Message

Mike Frysinger Oct. 20, 2010, 11:17 a.m. UTC
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/linux/ctype.h |    2 +-
 lib/ctype.c           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Wolfgang Denk Nov. 28, 2010, 9:02 p.m. UTC | #1
Dear Mike Frysinger,

In message <1287573465-6697-1-git-send-email-vapier@gentoo.org> you wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  include/linux/ctype.h |    2 +-
>  lib/ctype.c           |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied to "next" branch, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/include/linux/ctype.h b/include/linux/ctype.h
index afa3639..6dec944 100644
--- a/include/linux/ctype.h
+++ b/include/linux/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/lib/ctype.c b/lib/ctype.c
index 6ed0468..dffe563 100644
--- a/lib/ctype.c
+++ b/lib/ctype.c
@@ -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 */