Skip to content

Commit

Permalink
Restyled by astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Dec 19, 2021
1 parent 7288151 commit c756a6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toxcore/crypto_core_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void crypto_memzero(void *data, size_t length)
bool crypto_memlock(void *data, size_t length)
{
#ifndef VANILLA_NACL

if (sodium_mlock(data, length) != 0) {
return false;
}
Expand All @@ -54,6 +55,7 @@ bool crypto_memlock(void *data, size_t length)
bool crypto_memunlock(void *data, size_t length)
{
#ifndef VANILLA_NACL

if (sodium_munlock(data, length) != 0) {
return false;
}
Expand Down

0 comments on commit c756a6b

Please sign in to comment.