From 14dedf38a254db709089cbfb62ff0e823d876c7c Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 6 Feb 1998 01:49:06 +0000 Subject: size_t n in initstate(); XPG --- lib/libc/stdlib/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib/random.c') 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 @@ -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]); -- cgit v1.2.3-59-g8ed1b