Fix the return type of the getentropy stub
commit2b34e2716f1e84b2c3457ffc868c3dc775b55845
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 3 Aug 2017 22:35:48 +0000 (3 22:35 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 3 Aug 2017 22:35:48 +0000 (3 22:35 +0000)
tree27bcd82522185b5e9dff0112cad8a92bc6027ad2
parent144bdab050bdd78c327d98a79b15c5b164e1d56f
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.
ChangeLog
stdlib/getentropy.c