Pointers for sodium_m[un]lock() do not have to be const
This commit is contained in:
parent
b5589d1855
commit
62d78ec154
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user