diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-11-17 01:26:25 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-11-17 23:13:58 +0100 |
commit | 7f991c7d322c9eaf83515de97b61700be8fa7abb (patch) | |
tree | a003b92d9b31e903066e057a5a24deaf1fa93a91 /libguile/threads.c | |
parent | 6bd210e090be6e6ce3fbe65075185676f87b1eac (diff) | |
download | guile-7f991c7d322c9eaf83515de97b61700be8fa7abb.tar.gz |
Fix C99-style declarations after statements.
* libguile/eval.i.c (ceval): Move declarations before statements.
* libguile/read.c (scm_read_extended_symbol): Likewise.
* libguile/struct.c (scm_make_struct_layout): Likewise.
* libguile/threads.c (fat_mutex_unlock): Likewise.
* libguile/vm-i-system.c (br_if_nargs_ne, br_if_nargs_lt): Likewise.
* libguile/vm.c (make_vm): Likewise.
Diffstat (limited to 'libguile/threads.c')
-rw-r--r-- | libguile/threads.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/threads.c b/libguile/threads.c index 2ca4f15e9..82b39f82d 100644 --- a/libguile/threads.c +++ b/libguile/threads.c @@ -1373,6 +1373,7 @@ static int fat_mutex_unlock (SCM mutex, SCM cond, const scm_t_timespec *waittime, int relock) { + SCM owner; fat_mutex *m = SCM_MUTEX_DATA (mutex); fat_cond *c = NULL; scm_i_thread *t = SCM_I_CURRENT_THREAD; @@ -1380,7 +1381,7 @@ fat_mutex_unlock (SCM mutex, SCM cond, scm_i_scm_pthread_mutex_lock (&m->lock); - SCM owner = m->owner; + owner = m->owner; if (!scm_is_eq (owner, scm_current_thread ())) { |