summaryrefslogtreecommitdiff
path: root/libguile/threads.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-17 01:26:25 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-17 23:13:58 +0100
commit7f991c7d322c9eaf83515de97b61700be8fa7abb (patch)
treea003b92d9b31e903066e057a5a24deaf1fa93a91 /libguile/threads.c
parent6bd210e090be6e6ce3fbe65075185676f87b1eac (diff)
downloadguile-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.c3
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 ()))
{