From d82ab8d20191a9ebdb83f918c62fc6c32f068b01 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Wed, 29 May 2024 20:38:33 +0200 Subject: Declare file local variables and functions static Avoid missing prototype warnings by declaring variables and functions that are only used in a single file static. --- src/tweetnacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tweetnacl.c') diff --git a/src/tweetnacl.c b/src/tweetnacl.c index 9f66546..746cabc 100644 --- a/src/tweetnacl.c +++ b/src/tweetnacl.c @@ -3,7 +3,7 @@ we're using the one from PHP.*/ #include "php_snuffleupagus.h" #include "ext/standard/php_random.h" -void randombytes(unsigned char *x, unsigned long long xlen) { +static void randombytes(unsigned char *x, unsigned long long xlen) { assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? php_random_bytes(x, xlen, 1); } -- cgit v1.3