Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern let this compile in the non KERNEL case with...
details: https://anonhg.NetBSD.org/src/rev/816ef76d2db4
branches: trunk
changeset: 537842:816ef76d2db4
user: dan <dan%NetBSD.org@localhost>
date: Sun Oct 06 13:42:36 2002 +0000
description:
let this compile in the non KERNEL case without NRND.
diffstat:
sys/lib/libkern/arc4random.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 3f4706c8806e -r 816ef76d2db4 sys/lib/libkern/arc4random.c
--- a/sys/lib/libkern/arc4random.c Sun Oct 06 13:23:00 2002 +0000
+++ b/sys/lib/libkern/arc4random.c Sun Oct 06 13:42:36 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arc4random.c,v 1.8 2002/10/06 08:51:44 tls Exp $ */
+/* $NetBSD: arc4random.c,v 1.9 2002/10/06 13:42:36 dan Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -96,7 +96,10 @@
{
u_int8_t key[256];
static int cur_keybytes;
- int r, n, byteswanted;
+ int n, byteswanted;
+#if NRND > 0
+ int r;
+#endif
if(!arc4_initialized)
/* The first time through, we must take what we can get */
Home |
Main Index |
Thread Index |
Old Index