From d287b1683986bc3e9e443aa39ce16ac2a4e9a8bc Mon Sep 17 00:00:00 2001 From: Tom Li Date: Fri, 23 Jan 2015 18:23:14 +0800 Subject: [PATCH] exfat_upcase.c: mark uni_upcase table as "const". uni_upcase is an array, which contains the upper case table of exfat. Since it is a read-only constant, it could be marked as "const" for better safety and compiler optimizations. Signed-off-by: Tom Li --- exfat_upcase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exfat_upcase.c b/exfat_upcase.c index e0a8668..3807f37 100644 --- a/exfat_upcase.c +++ b/exfat_upcase.c @@ -36,7 +36,7 @@ #include "exfat_nls.h" -u8 uni_upcase[NUM_UPCASE<<1] = { +const u8 uni_upcase[NUM_UPCASE<<1] = { 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00, 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00, 0x09, 0x00, 0x0A, 0x00, 0x0B, 0x00, 0x0C, 0x00, 0x0D, 0x00, 0x0E, 0x00, 0x0F, 0x00, 0x10, 0x00, 0x11, 0x00, 0x12, 0x00, 0x13, 0x00, 0x14, 0x00, 0x15, 0x00, 0x16, 0x00, 0x17, 0x00,