aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-04-23 14:29:43 +0200
committerKim Alvefur <zash@zash.se>2022-04-23 14:29:43 +0200
commit787835d693df993e8dbf4164d85b7939856e1aea (patch)
treeec43f3e5371207a18f8fcf29f6e4845700aa3717 /util-src
parent9e8e910f1e7be52db27ec26aeb9f39171a6946b5 (diff)
downloadprosody-787835d693df993e8dbf4164d85b7939856e1aea.tar.gz
prosody-787835d693df993e8dbf4164d85b7939856e1aea.zip
util.strbitop: Reduce scope of functions
Equivalent to 'local' in Lua, these functions are exported via the luaopen_ function, which is the only one needing to be visible outside of the file. Pointed out by Link Mauve at some point, but there wasn't really any rush here.
Diffstat (limited to 'util-src')
-rw-r--r--util-src/strbitop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-src/strbitop.c b/util-src/strbitop.c
index 89fce661..fda8917a 100644
--- a/util-src/strbitop.c
+++ b/util-src/strbitop.c
@@ -14,7 +14,7 @@
/* TODO Deduplicate code somehow */
-int strop_and(lua_State *L) {
+static int strop_and(lua_State *L) {
luaL_Buffer buf;
size_t a, b, i;
const char *str_a = luaL_checklstring(L, 1, &a);
@@ -35,7 +35,7 @@ int strop_and(lua_State *L) {
return 1;
}
-int strop_or(lua_State *L) {
+static int strop_or(lua_State *L) {
luaL_Buffer buf;
size_t a, b, i;
const char *str_a = luaL_checklstring(L, 1, &a);
@@ -56,7 +56,7 @@ int strop_or(lua_State *L) {
return 1;
}
-int strop_xor(lua_State *L) {
+static int strop_xor(lua_State *L) {
luaL_Buffer buf;
size_t a, b, i;
const char *str_a = luaL_checklstring(L, 1, &a);