From: kstailey Date: Wed, 15 Jan 1997 02:03:53 +0000 (+0000) Subject: prevent this warning: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0d3838850bbcd262113dbd111776defc4ad6fcf2;p=openbsd prevent this warning: rnd.c:823: warning: `ret' might be used uninitialized in this function when compiling with -Wall --- 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,