From 0d3838850bbcd262113dbd111776defc4ad6fcf2 Mon Sep 17 00:00:00 2001 From: kstailey Date: Wed, 15 Jan 1997 02:03:53 +0000 Subject: [PATCH] prevent this warning: rnd.c:823: warning: `ret' might be used uninitialized in this function when compiling with -Wall --- sys/dev/rnd.c | 6 +++--- 1 file 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, -- 2.20.1