mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
define randombytes_set_implementation argument to be const (#1068)
This commit is contained in:
@@ -53,7 +53,7 @@ SODIUM_EXPORT
|
||||
int randombytes_close(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
int randombytes_set_implementation(randombytes_implementation *impl)
|
||||
int randombytes_set_implementation(const randombytes_implementation *impl)
|
||||
__attribute__ ((nonnull));
|
||||
|
||||
SODIUM_EXPORT
|
||||
|
||||
@@ -112,7 +112,7 @@ randombytes_init_if_needed(void)
|
||||
}
|
||||
|
||||
int
|
||||
randombytes_set_implementation(randombytes_implementation *impl)
|
||||
randombytes_set_implementation(const randombytes_implementation *impl)
|
||||
{
|
||||
implementation = impl;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user