Mercurial > prosody-hg
diff util-src/hashes.c @ 10480:94cacf9fd0ae
util.*.c: Add static qualifiers everywhere
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 01 Dec 2019 20:25:20 +0100 |
| parents | 4a43feb9ab15 |
| children | 93293891709b |
line wrap: on
line diff
--- a/util-src/hashes.c Sun Dec 01 23:34:49 2019 +0100 +++ b/util-src/hashes.c Sun Dec 01 20:25:20 2019 +0100 @@ -35,8 +35,8 @@ #define HMAC_IPAD 0x36363636 #define HMAC_OPAD 0x5c5c5c5c -const char *hex_tab = "0123456789abcdef"; -void toHex(const unsigned char *in, int length, unsigned char *out) { +static const char *hex_tab = "0123456789abcdef"; +static void toHex(const unsigned char *in, int length, unsigned char *out) { int i; for(i = 0; i < length; i++) {
