[openssh-commits] [openssh] 01/01: wrap get_random_bytes_prngd() in ifdef

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jul 2 14:31:10 AEST 2021


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 0767627cf66574484b9c0834500b42ea04fe528a
Author: Damien Miller <djm at mindrot.org>
Date:   Fri Jul 2 14:30:23 2021 +1000

    wrap get_random_bytes_prngd() in ifdef
    
    avoid unused static function warning
---
 openbsd-compat/port-prngd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/openbsd-compat/port-prngd.c b/openbsd-compat/port-prngd.c
index 915f8206..4c88b4b6 100644
--- a/openbsd-compat/port-prngd.c
+++ b/openbsd-compat/port-prngd.c
@@ -44,6 +44,7 @@
 #include "misc.h"
 #include "log.h"
 
+#ifdef PRNGD_SOCKET
 /*
  * EGD/PRNGD interface.
  *
@@ -144,6 +145,7 @@ done:
 		close(fd);
 	return rval;
 }
+#endif /* PRNGD_SOCKET */
 
 int
 seed_from_prngd(unsigned char *buf, size_t bytes)

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list