aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-12-01 23:34:45 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-12-01 23:34:45 +0100
commitd209c0c6777ae4cdf2c427cd53bdb4bcb79f85b3 (patch)
tree2a2ab0ff88ce188634a3df8179fe3e46c3698738 /util-src
parent91415f5a71021cc24053de17fca1c5337ebd7249 (diff)
downloadprosody-d209c0c6777ae4cdf2c427cd53bdb4bcb79f85b3.tar.gz
prosody-d209c0c6777ae4cdf2c427cd53bdb4bcb79f85b3.zip
util.encodings: Don’t export unneeded symbols
This reduces the binary size from 22704 B to 18592 B.
Diffstat (limited to 'util-src')
-rw-r--r--util-src/encodings.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index 367182b6..6f975dfc 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -216,7 +216,7 @@ static const char *utf8_decode(const char *o, int *val) {
* Check that a string is valid UTF-8
* Returns NULL if not
*/
-const char *check_utf8(lua_State *L, int idx, size_t *l) {
+static const char *check_utf8(lua_State *L, int idx, size_t *l) {
size_t pos, len;
const char *s = luaL_checklstring(L, idx, &len);
pos = 0;
@@ -323,12 +323,12 @@ static int icu_stringprep_prep(lua_State *L, const UStringPrepProfile *profile)
}
}
-UStringPrepProfile *icu_nameprep;
-UStringPrepProfile *icu_nodeprep;
-UStringPrepProfile *icu_resourceprep;
-UStringPrepProfile *icu_saslprep;
-USpoofChecker *icu_spoofcheck;
-UIDNA *icu_idna2008;
+static UStringPrepProfile *icu_nameprep;
+static UStringPrepProfile *icu_nodeprep;
+static UStringPrepProfile *icu_resourceprep;
+static UStringPrepProfile *icu_saslprep;
+static USpoofChecker *icu_spoofcheck;
+static UIDNA *icu_idna2008;
#if (U_ICU_VERSION_MAJOR_NUM < 58)
/* COMPAT */
@@ -336,7 +336,7 @@ UIDNA *icu_idna2008;
#endif
/* initialize global ICU stringprep profiles */
-void init_icu(void) {
+static void init_icu(void) {
UErrorCode err = U_ZERO_ERROR;
utrace_setLevel(UTRACE_VERBOSE);
icu_nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, &err);