From 0f110f410020b780e777de364553d0bf8d5e7ab4 Mon Sep 17 00:00:00 2001 From: "Thomas Bushnell, BSG" Date: Tue, 5 Nov 1996 05:07:48 +0000 Subject: *** empty log message *** Tue Nov 5 00:04:48 1996 Thomas Bushnell, n/BSG * stdio-common/vfprintf.c: Include . --- stdlib/random.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'stdlib/random.c') diff --git a/stdlib/random.c b/stdlib/random.c index 461b76f29b..ffa658d650 100644 --- a/stdlib/random.c +++ b/stdlib/random.c @@ -180,9 +180,9 @@ void __srandom (x) unsigned int x; { - __libc_lock_lock (lock) + __libc_lock_lock (lock); (void) __srandom_r (x, &unsafe_state); - __libc_lock_unlock (lock) + __libc_lock_unlock (lock); } weak_alias (__srandom, srandom) @@ -207,13 +207,13 @@ __initstate (seed, arg_state, n) { void *ostate; - __libc_lock_lock (lock) + __libc_lock_lock (lock); ostate = (void *) &unsafe_state.state[-1]; __initstate_r (seed, arg_state, n, &unsafe_state); - __libc_lock_unlock (lock) + __libc_lock_unlock (lock); return ostate; } @@ -234,14 +234,14 @@ __setstate (arg_state) { void *ostate; - __libc_lock_lock (lock) + __libc_lock_lock (lock); ostate = (void *) &unsafe_state.state[-1]; if (__setstate_r (arg_state, &unsafe_state) < 0) ostate = NULL; - __libc_lock_unlock (lock) + __libc_lock_unlock (lock); return ostate; } @@ -264,11 +264,11 @@ __random () { int32_t retval; - __libc_lock_lock (lock) + __libc_lock_lock (lock); (void) __random_r (&unsafe_state, &retval); - __libc_lock_unlock (lock) + __libc_lock_unlock (lock); return retval; } -- cgit v1.2.1