Pointers for sodium_m[un]lock() do not have to be const

This commit is contained in:
Frank Denis 2014-04-17 22:10:18 -07:00
parent b5589d1855
commit 62d78ec154
2 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ int sodium_hex2bin(unsigned char * const bin, const size_t bin_maxlen,
const char ** const hex_end);
SODIUM_EXPORT
int sodium_mlock(const void *addr, const size_t len);
int sodium_mlock(void * const addr, const size_t len);
SODIUM_EXPORT
int sodium_munlock(const void *addr, const size_t len);
int sodium_munlock(void * const addr, const size_t len);
#ifdef __cplusplus
}

View File

@ -158,7 +158,7 @@ sodium_hex2bin(unsigned char * const bin, const size_t bin_maxlen,
}
int
sodium_mlock(const void *addr, const size_t len)
sodium_mlock(void * const addr, const size_t len)
{
#ifdef HAVE_MLOCK
return mlock(addr, len);
@ -171,7 +171,7 @@ sodium_mlock(const void *addr, const size_t len)
}
int
sodium_munlock(const void *addr, const size_t len)
sodium_munlock(void * const addr, const size_t len)
{
#ifdef HAVE_MLOCK
return munlock(addr, len);