Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-03-15 17:37:22 +0300
committerJoel Sherrill <joel@rtems.org>2017-03-15 20:04:28 +0300
commit6e3a2037ebb47a7a59a14bf2d568456078d7b27a (patch)
tree43a1512f749463d86a83adf72f22d7bb298a5794 /newlib/libc/sys/rtems
parent778f4397f3df42988b05807ef3b50d8482844204 (diff)
rtems/crt0.c: getentropy() stub did not return a value.
Coverity Scan ID: 175342
Diffstat (limited to 'newlib/libc/sys/rtems')
-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__)