summaryrefslogtreecommitdiff
path: root/stdlib
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
parent050a966adc1830841802dbbd803b7cc1d792af4d (diff)
downloadglibc-0f110f410020b780e777de364553d0bf8d5e7ab4.tar.gz
*** 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')
-rw-r--r--stdlib/atexit.c4
-rw-r--r--stdlib/random.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/atexit.c b/stdlib/atexit.c
index 675de668cc..bf7f91a22b 100644
--- a/stdlib/atexit.c
+++ b/stdlib/atexit.c
@@ -49,7 +49,7 @@ __new_exitfn (void)
struct exit_function_list *l;
size_t i = 0;
- __libc_lock_lock (lock)
+ __libc_lock_lock (lock);
for (l = __exit_funcs; l != NULL; l = l->next)
{
@@ -84,7 +84,7 @@ __new_exitfn (void)
if (l != NULL)
l->fns[i].flavor = ef_us;
- __libc_lock_unlock (lock)
+ __libc_lock_unlock (lock);
return l == NULL ? NULL : &l->fns[i];
}
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;
}