summary refs log tree commit diff
path: root/stdlib/random.c
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-11-05 05:07:48 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-11-05 05:07:48 +0000
commit0f110f410020b780e777de364553d0bf8d5e7ab4 (patch)
tree467074379860386c73f276ffdd594a1e2d6c7b48 /stdlib/random.c
parent050a966adc1830841802dbbd803b7cc1d792af4d (diff)
downloadglibc-0f110f410020b780e777de364553d0bf8d5e7ab4.tar.gz
glibc-0f110f410020b780e777de364553d0bf8d5e7ab4.tar.xz
glibc-0f110f410020b780e777de364553d0bf8d5e7ab4.zip
*** empty log message ***
Tue Nov  5 00:04:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* stdio-common/vfprintf.c: Include <libc-lock.h>.
Diffstat (limited to 'stdlib/random.c')
-rw-r--r--stdlib/random.c16
1 files changed, 8 insertions, 8 deletions
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;
 }