diff options
author | rofl0r <retnyg@gmx.net> | 2013-02-02 03:08:57 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2013-02-02 03:19:25 +0100 |
commit | c50925071cce9c6342597f5671e30d2970c6ff4a (patch) | |
tree | 32279f7c94dfb0b2b76c4eaed3880247a45a7adf /src/crypt/crypt_md5.c | |
parent | facc6acbfd20accea435d10fdd070b23877e40db (diff) | |
download | musl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.gz musl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.bz2 musl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.xz musl-c50925071cce9c6342597f5671e30d2970c6ff4a.zip |
make some arrays const
this way they'll go into .rodata, decreasing memory pressure.
Diffstat (limited to 'src/crypt/crypt_md5.c')
-rw-r--r-- | src/crypt/crypt_md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypt/crypt_md5.c b/src/crypt/crypt_md5.c index 70ab8b99..6e75b36c 100644 --- a/src/crypt/crypt_md5.c +++ b/src/crypt/crypt_md5.c @@ -182,7 +182,7 @@ static void md5_update(struct md5 *s, const void *m, unsigned long len) #define KEY_MAX 30000 #define SALT_MAX 8 -static unsigned char b64[] = +static const unsigned char b64[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; static char *to64(char *s, unsigned int u, int n) |