Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern void function _arc4randbytes cannot return a...
details: https://anonhg.NetBSD.org/src/rev/221453c13df8
branches: trunk
changeset: 773735:221453c13df8
user: njoly <njoly%NetBSD.org@localhost>
date: Tue Feb 14 18:57:35 2012 +0000
description:
void function _arc4randbytes cannot return a value.
diffstat:
sys/lib/libkern/arc4random.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 0dcde5834e05 -r 221453c13df8 sys/lib/libkern/arc4random.c
--- a/sys/lib/libkern/arc4random.c Tue Feb 14 17:35:11 2012 +0000
+++ b/sys/lib/libkern/arc4random.c Tue Feb 14 18:57:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arc4random.c,v 1.30 2012/02/02 19:43:07 tls Exp $ */
+/* $NetBSD: arc4random.c,v 1.31 2012/02/14 18:57:35 njoly Exp $ */
/*-
* Copyright (c) 2002, 2011 The NetBSD Foundation, Inc.
@@ -302,7 +302,8 @@
if (!arc4_initialized) {
arc4_init();
/* avoid conditionalizing locking */
- return arc4randbytes_unlocked(p, len);
+ arc4randbytes_unlocked(p, len);
+ return;
}
mutex_spin_enter(&arc4_mtx);
arc4randbytes_unlocked(p, len);
Home |
Main Index |
Thread Index |
Old Index