summaryrefslogtreecommitdiff
path: root/src/ctype/wcwidth.c
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-02-02 03:08:57 +0100
committerrofl0r <retnyg@gmx.net>2013-02-02 03:19:25 +0100
commitc50925071cce9c6342597f5671e30d2970c6ff4a (patch)
tree32279f7c94dfb0b2b76c4eaed3880247a45a7adf /src/ctype/wcwidth.c
parentfacc6acbfd20accea435d10fdd070b23877e40db (diff)
downloadmusl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.gz
make some arrays const
this way they'll go into .rodata, decreasing memory pressure.
Diffstat (limited to 'src/ctype/wcwidth.c')
-rw-r--r--src/ctype/wcwidth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ctype/wcwidth.c b/src/ctype/wcwidth.c
index 98f128e9..49c40eea 100644
--- a/src/ctype/wcwidth.c
+++ b/src/ctype/wcwidth.c
@@ -1,10 +1,10 @@
#include <wchar.h>
-static unsigned char table[] = {
+static const unsigned char table[] = {
#include "nonspacing.h"
};
-static unsigned char wtable[] = {
+static const unsigned char wtable[] = {
#include "wide.h"
};