aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-04-23 14:37:43 +0200
committerKim Alvefur <zash@zash.se>2022-04-23 14:37:43 +0200
commit300813b68b95bd897585cd8728b862c849e1a78d (patch)
treeeb4ed205dd678cedacba48a568499391ec555064
parent787835d693df993e8dbf4164d85b7939856e1aea (diff)
downloadprosody-300813b68b95bd897585cd8728b862c849e1a78d.tar.gz
prosody-300813b68b95bd897585cd8728b862c849e1a78d.zip
util.crand: Reduce scope here too
Same as previous commit
-rw-r--r--util-src/crand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index 160ac1f6..e4104787 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -45,7 +45,7 @@
#endif
/* This wasn't present before glibc 2.25 */
-int getrandom(void *buf, size_t buflen, unsigned int flags) {
+static int getrandom(void *buf, size_t buflen, unsigned int flags) {
return syscall(SYS_getrandom, buf, buflen, flags);
}
#else
@@ -66,7 +66,7 @@ int getrandom(void *buf, size_t buflen, unsigned int flags) {
#define SMALLBUFSIZ 32
#endif
-int Lrandom(lua_State *L) {
+static int Lrandom(lua_State *L) {
char smallbuf[SMALLBUFSIZ];
char *buf = &smallbuf[0];
const lua_Integer l = luaL_checkinteger(L, 1);