summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-06 01:49:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-06 01:49:09 +0000
commit88ba03744641df3ab5f7e2c0ecbd9b4485d6db3d (patch)
tree05b278e4f28328e9c3180e6f162347b2d63e8b80 /lib/libc
parent869dc543b1f19acf87fa8a4f7d7d4e871332bc21 (diff)
size_t n in initstate(); XPG
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/random.34
-rw-r--r--lib/libc/stdlib/random.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index 6188c2a4318..87a4fe253fa 100644
--- a/lib/libc/stdlib/random.3
+++ b/lib/libc/stdlib/random.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: random.3,v 1.3 1996/08/19 08:33:46 tholo Exp $
+.\" $OpenBSD: random.3,v 1.4 1998/02/06 01:49:08 deraadt Exp $
.\"
.Dd April 19, 1991
.Dt RANDOM 3
@@ -47,7 +47,7 @@
.Ft void
.Fn srandom "unsigned seed"
.Ft char *
-.Fn initstate "unsigned seed" "char *state" "int n"
+.Fn initstate "unsigned seed" "char *state" "size_t n"
.Ft char *
.Fn setstate "char *state"
.Sh DESCRIPTION
diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c
index 46b67b5ec76..1ac61f2cec8 100644
--- a/lib/libc/stdlib/random.c
+++ b/lib/libc/stdlib/random.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: random.c,v 1.4 1996/09/15 09:31:51 tholo Exp $";
+static char *rcsid = "$OpenBSD: random.c,v 1.5 1998/02/06 01:49:08 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -242,7 +242,7 @@ char *
initstate(seed, arg_state, n)
u_int seed; /* seed for R.N.G. */
char *arg_state; /* pointer to state array */
- int n; /* # bytes of state info */
+ size_t n; /* # bytes of state info */
{
register char *ostate = (char *)(&state[-1]);