summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-01-15 02:03:54 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-01-15 02:03:54 +0000
commit627af16528362aa3b00826e44960230392e45bff (patch)
treecbe04be234c84365f79a6e620dd0826ccc4b9cfc
parent5097270ace8c9defe0626d516c52f9f6d0c8c0d5 (diff)
prevent this warning:
rnd.c:823: warning: `ret' might be used uninitialized in this function when compiling with -Wall
-rw-r--r--sys/dev/rnd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index 4d7e24577ba..2e446924dc5 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.14 1997/01/05 11:08:58 niklas Exp $ */
+/* $OpenBSD: rnd.c,v 1.15 1997/01/15 02:03:53 kstailey Exp $ */
/*
* random.c -- A strong random number generator
@@ -820,9 +820,9 @@ randomioctl(dev, cmd, data, flag, p)
int flag;
struct proc *p;
{
- int ret;
+ int ret = 0;
u_int cnt;
-
+
switch (cmd) {
case RNDGETENTCNT:
ret = copyout(&random_state.entropy_count, data,