mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Fix the return type of the getentropy stub
The return type of the getentropy stub is wrongly defined as ssize_t, while both the <sys/random.h> header and the Linux implementation define it as int. This patch fixes that. Changelog: * stdlib/getentropy.c (getentropy): Change return type to int.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
|
||||||
|
* stdlib/getentropy.c (getentropy): Change return type to int.
|
||||||
|
|
||||||
2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
|
2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
|
||||||
* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
|
* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
|
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
|
||||||
success and -1 on failure. */
|
success and -1 on failure. */
|
||||||
ssize_t
|
int
|
||||||
getentropy (void *buffer, size_t length)
|
getentropy (void *buffer, size_t length)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
|
Reference in New Issue
Block a user