diff options
| author | Christian Göttsche | 2024-05-29 20:38:33 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-06 16:27:31 +0200 |
| commit | d82ab8d20191a9ebdb83f918c62fc6c32f068b01 (patch) | |
| tree | 8847596b0016a17f5a207f00b8e0002eff0bd349 /src/tweetnacl.c | |
| parent | 7e7678a0e5927af625e42627ed9f5757ecf9ca89 (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 'src/tweetnacl.c')
| -rw-r--r-- | src/tweetnacl.c | 2 |
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 | ||
| 6 | void randombytes(unsigned char *x, unsigned long long xlen) { | 6 | static 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 | } |
