diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2017-08-03 22:35:48 +0000 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2017-08-03 22:35:48 +0000 |
commit | 2b34e2716f1e84b2c3457ffc868c3dc775b55845 (patch) | |
tree | 27bcd82522185b5e9dff0112cad8a92bc6027ad2 /stdlib | |
parent | 144bdab050bdd78c327d98a79b15c5b164e1d56f (diff) | |
download | glibc-2b34e2716f1e84b2c3457ffc868c3dc775b55845.tar.gz glibc-2b34e2716f1e84b2c3457ffc868c3dc775b55845.tar.xz glibc-2b34e2716f1e84b2c3457ffc868c3dc775b55845.zip |
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.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/getentropy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/getentropy.c b/stdlib/getentropy.c index a71d4cd8f5..a88bbf8de3 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); |