Changeset

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
parents 12469:2b3adaa6d38e
children 12471:a3b12eeedd4b
files util-src/crand.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);