util.crand: Reduce scope here too
authorKim Alvefur <zash@zash.se>
Sat, 23 Apr 2022 14:37:43 +0200
changeset 12474 80f3123053e2
parent 12473 2b3adaa6d38e
child 12475 a3b12eeedd4b
util.crand: Reduce scope here too Same as previous commit
util-src/crand.c
--- a/util-src/crand.c	Sat Apr 23 14:29:43 2022 +0200
+++ b/util-src/crand.c	Sat Apr 23 14:37:43 2022 +0200
@@ -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 @@
 #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);