diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/atexit.c | 4 | ||||
-rw-r--r-- | stdlib/random.c | 16 |
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; } |