Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern make it compile without DIAGNOSTIC defined
details: https://anonhg.NetBSD.org/src/rev/30a984b1dcc4
branches: trunk
changeset: 771431:30a984b1dcc4
user: para <para%NetBSD.org@localhost>
date: Sun Nov 20 15:37:31 2011 +0000
description:
make it compile without DIAGNOSTIC defined
diffstat:
sys/lib/libkern/arc4random.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 5a0c8f66564f -r 30a984b1dcc4 sys/lib/libkern/arc4random.c
--- a/sys/lib/libkern/arc4random.c Sun Nov 20 12:29:33 2011 +0000
+++ b/sys/lib/libkern/arc4random.c Sun Nov 20 15:37:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arc4random.c,v 1.22 2011/11/19 22:51:25 tls Exp $ */
+/* $NetBSD: arc4random.c,v 1.23 2011/11/20 15:37:31 para Exp $ */
/*-
* Copyright (c) 2002, 2011 The NetBSD Foundation, Inc.
@@ -133,8 +133,10 @@
u_int8_t key[256];
int n, ask_for_more = 0;
#ifdef _KERNEL
+#ifdef DIAGNOSTIC
rngtest_t rt;
#endif
+#endif
#if NRND > 0
static int callback_pending;
int r;
Home |
Main Index |
Thread Index |
Old Index