Module Name: src
Committed By: pgoyette
Date: Tue Jul 2 13:27:43 UTC 2013
Modified Files:
src/sys/dev: rndpseudo.c
Log Message:
Initialize some variables to make the vax build happy.
XXX Not sure why this problem only showed up on vax builds.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/rndpseudo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/rndpseudo.c
diff -u src/sys/dev/rndpseudo.c:1.14 src/sys/dev/rndpseudo.c:1.15
--- src/sys/dev/rndpseudo.c:1.14 Mon Jul 1 15:22:00 2013
+++ src/sys/dev/rndpseudo.c Tue Jul 2 13:27:42 2013
@@ -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 @@ out: if (tmp != NULL)
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 @@ static int
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",