Diff

util-src/crand.c @ 12470:80f3123053e2

util.crand: Reduce scope here too Same as previous commit
author Kim Alvefur <zash@zash.se>
date Sat, 23 Apr 2022 14:37:43 +0200
parent 8451:770f79a9635c
child 12575:1f6f05a98fcd
line wrap: on
line diff
--- 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);