Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Initialize some variables to make the vax build happy.
details: https://anonhg.NetBSD.org/src/rev/b87482e6f174
branches: trunk
changeset: 787769:b87482e6f174
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Jul 02 13:27:42 2013 +0000
description:
Initialize some variables to make the vax build happy.
XXX Not sure why this problem only showed up on vax builds.
diffstat:
sys/dev/rndpseudo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r a6c27218112c -r b87482e6f174 sys/dev/rndpseudo.c
--- a/sys/dev/rndpseudo.c Tue Jul 02 11:59:46 2013 +0000
+++ b/sys/dev/rndpseudo.c Tue Jul 02 13:27:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndpseudo.c,v 1.14 2013/07/01 15:22:00 riastradh Exp $ */
+/* $NetBSD: rndpseudo.c,v 1.15 2013/07/02 13:27:42 pgoyette Exp $ */
/*-
* Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.14 2013/07/01 15:22:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.15 2013/07/02 13:27:42 pgoyette Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -294,7 +294,7 @@
static struct cprng_strong *
rnd_percpu_cprng(void)
{
- struct cprng_strong **cprngp, *cprng, *tmp;
+ struct cprng_strong **cprngp, *cprng, *tmp = NULL;
/* Fast path: if there already is a CPRNG for this CPU, use it. */
cprngp = percpu_getref(percpu_urandom_cprng);
@@ -341,7 +341,7 @@
rnd_read(struct file *fp, off_t *offp, struct uio *uio, kauth_cred_t cred,
int flags)
{
- int error;
+ int error = 0;
DPRINTF(RND_DEBUG_READ,
("Random: Read of %zu requested, flags 0x%08x\n",
Home |
Main Index |
Thread Index |
Old Index