Skip to content

Commit

Permalink
exfat_upcase.c: mark uni_upcase table as "const".
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
biergaizi committed Jan 23, 2015
1 parent f02406c commit d287b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exfat_upcase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d287b16

Please sign in to comment.