public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] rtems/crt0.c: getentropy() stub did not return a value.
@ 2017-03-15 22:31 Joel Sherrill
  0 siblings, 0 replies; only message in thread
From: Joel Sherrill @ 2017-03-15 22:31 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6e3a2037ebb47a7a59a14bf2d568456078d7b27a

commit 6e3a2037ebb47a7a59a14bf2d568456078d7b27a
Author: Joel Sherrill <joel@rtems.org>
Date:   Wed Mar 15 09:37:22 2017 -0500

    rtems/crt0.c: getentropy() stub did not return a value.
    
    Coverity Scan ID: 175342

Diff:
---
 newlib/libc/sys/rtems/crt0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index 769cde7..0e9d426 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__)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-15 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 22:31 [newlib-cygwin] rtems/crt0.c: getentropy() stub did not return a value Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).