diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2007-10-17 02:29:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:58 -0400 |
commit | b9ec0339d8e22cadf2d9d1b010b51dc53837dfb0 (patch) | |
tree | e7d05e78a68eecc00e656e7e4fdf518967826381 /include | |
parent | 37c42524d6090644206ae6d310d7e830bd3ccb47 (diff) |
add consts where appropriate in fs/nls/*
Add const modifiers to a few struct nls_table's member pointers in
include/linux/nls.h and adds a lot of const's in fs/nls/*.c files.
Resulting changes as visible by size:
text data bss dec hex filename
113612 481216 2368 597196 91ccc nls.org/built-in.o
593548 3296 288 597132 91c8c nls/built-in.o
Apparently compiler managed to optimize code a bit better
because of const-ness.
No other changes are made.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nls.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/nls.h b/include/linux/nls.h index 816c04ad7381..6a882208301a 100644 --- a/include/linux/nls.h +++ b/include/linux/nls.h | |||
@@ -7,13 +7,13 @@ | |||
7 | typedef __u16 wchar_t; | 7 | typedef __u16 wchar_t; |
8 | 8 | ||
9 | struct nls_table { | 9 | struct nls_table { |
10 | char *charset; | 10 | const char *charset; |
11 | char *alias; | 11 | const char *alias; |
12 | int (*uni2char) (wchar_t uni, unsigned char *out, int boundlen); | 12 | int (*uni2char) (wchar_t uni, unsigned char *out, int boundlen); |
13 | int (*char2uni) (const unsigned char *rawstring, int boundlen, | 13 | int (*char2uni) (const unsigned char *rawstring, int boundlen, |
14 | wchar_t *uni); | 14 | wchar_t *uni); |
15 | unsigned char *charset2lower; | 15 | const unsigned char *charset2lower; |
16 | unsigned char *charset2upper; | 16 | const unsigned char *charset2upper; |
17 | struct module *owner; | 17 | struct module *owner; |
18 | struct nls_table *next; | 18 | struct nls_table *next; |
19 | }; | 19 | }; |