From: Aurelien Jarno Date: Thu, 3 Aug 2017 22:35:48 +0000 (+0000) Subject: Fix the return type of the getentropy stub X-Git-Tag: glibc-2.27~1236 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b34e2716f1e84b2c3457ffc868c3dc775b55845;p=thirdparty%2Fglibc.git Fix the return type of the getentropy stub The return type of the getentropy stub is wrongly defined as ssize_t, while both the header and the Linux implementation define it as int. This patch fixes that. Changelog: * stdlib/getentropy.c (getentropy): Change return type to int. --- diff --git a/ChangeLog b/ChangeLog index 90dd59045b3..1d336afb258 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-08-03 Aurelien Jarno + + * stdlib/getentropy.c (getentropy): Change return type to int. + 2017-08-03 Aurelien Jarno * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated. diff --git a/stdlib/getentropy.c b/stdlib/getentropy.c index a71d4cd8f5f..a88bbf8de3c 100644 --- a/stdlib/getentropy.c +++ b/stdlib/getentropy.c @@ -21,7 +21,7 @@ /* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on success and -1 on failure. */ -ssize_t +int getentropy (void *buffer, size_t length) { __set_errno (ENOSYS);