summaryrefslogtreecommitdiff
path: root/src/tweetnacl.c
diff options
context:
space:
mode:
authorChristian Göttsche2024-05-29 20:38:33 +0200
committerjvoisin2024-06-06 16:27:31 +0200
commitd82ab8d20191a9ebdb83f918c62fc6c32f068b01 (patch)
tree8847596b0016a17f5a207f00b8e0002eff0bd349 /src/tweetnacl.c
parent7e7678a0e5927af625e42627ed9f5757ecf9ca89 (diff)
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.
Diffstat (limited to '')
-rw-r--r--src/tweetnacl.c2
1 files changed, 1 insertions, 1 deletions
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.*/
3#include "php_snuffleupagus.h" 3#include "php_snuffleupagus.h"
4#include "ext/standard/php_random.h" 4#include "ext/standard/php_random.h"
5 5
6void randombytes(unsigned char *x, unsigned long long xlen) { 6static void randombytes(unsigned char *x, unsigned long long xlen) {
7 assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? 7 assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ?
8 php_random_bytes(x, xlen, 1); 8 php_random_bytes(x, xlen, 1);
9} 9}