Commit bec29dfb authored by Jesper Louis Andersen's avatar Jesper Louis Andersen
Browse files

Mark internal functions as static functions.

This quells a number of warnings in the library when compiling.
parent a7fbfbd5
......@@ -785,7 +785,7 @@ ERL_NIF_TERM enif_randombytes(ErlNifEnv *env, int argc, ERL_NIF_TERM const argv[
}
/* Various other helper functions */
static
void uint64_pack(unsigned char *y, ErlNifUInt64 x)
{
*y++ = x; x >>= 8;
......@@ -798,8 +798,8 @@ void uint64_pack(unsigned char *y, ErlNifUInt64 x)
*y++ = x; x >>= 8;
}
ErlNifUInt64
uint64_unpack(const unsigned char *x)
static
ErlNifUInt64 uint64_unpack(const unsigned char *x)
{
ErlNifUInt64 result;
......@@ -814,8 +814,8 @@ uint64_unpack(const unsigned char *x)
return result;
}
int
crypto_block(unsigned char *out, const unsigned char *in, const unsigned char *k)
static
int crypto_block(unsigned char *out, const unsigned char *in, const unsigned char *k)
{
ErlNifUInt64 v0 = uint64_unpack(in + 0);
ErlNifUInt64 v1 = uint64_unpack(in + 8);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment