summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-03-15 09:37:22 -0500
committerJoel Sherrill <joel@rtems.org>2017-03-15 12:04:28 -0500
commit6e3a2037ebb47a7a59a14bf2d568456078d7b27a (patch)
tree43a1512f749463d86a83adf72f22d7bb298a5794
parent778f4397f3df42988b05807ef3b50d8482844204 (diff)
downloadcygnal-6e3a2037ebb47a7a59a14bf2d568456078d7b27a.tar.gz
cygnal-6e3a2037ebb47a7a59a14bf2d568456078d7b27a.tar.bz2
cygnal-6e3a2037ebb47a7a59a14bf2d568456078d7b27a.zip
rtems/crt0.c: getentropy() stub did not return a value.
Coverity Scan ID: 175342
-rw-r--r--newlib/libc/sys/rtems/crt0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index 769cde7db..0e9d426ec 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -68,7 +68,7 @@ RTEMS_STUB(void, _Libatomic_Lock_n(void *ptr, __size_t n), { });
RTEMS_STUB(void, _Libatomic_Unlock_n(void *ptr, __size_t n), { });
/* Stubs for routines for arc4random (from <unistd.h> and <machine/_arc4random.h> */
-RTEMS_STUB(int, getentropy(void *ptr, __size_t n), { });
+RTEMS_STUB(int, getentropy(void *ptr, __size_t n), { return -1; });
RTEMS_STUB(void, _arc4random_getentropy_fail(void), { });
#if defined(__GNUC__)