rtems/crt0.c: getentropy() stub did not return a value.

Coverity Scan ID: 175342
This commit is contained in:
Joel Sherrill 2017-03-15 09:37:22 -05:00
parent 778f4397f3
commit 6e3a2037eb
1 changed files with 1 additions and 1 deletions

View File

@ -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__)