diff --git a/src/libsodium/include/sodium/utils.h b/src/libsodium/include/sodium/utils.h index bd34649a..817919ba 100644 --- a/src/libsodium/include/sodium/utils.h +++ b/src/libsodium/include/sodium/utils.h @@ -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 } diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index fdf16390..115ea9a7 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -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);