diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-26 20:55:21 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-26 20:55:21 +0000 |
commit | 9542db576f9d453e0c9b65df9e9eb395e3d8b632 (patch) | |
tree | 7b4e31e836cb39ed528992a358a43ac6058b026b /libports | |
parent | f32abc2d47620929ec360fbc764ba9a07f92c36d (diff) |
(ports_manage_port_operations_multithread): Declare ERR inside
THREAD_FUNCTION so it doesn't get shared by multiple threads.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/manage-multithread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 6a0fc670..5260d940 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -31,7 +31,6 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, int wire_cthreads, mach_port_t wire_threads) { - error_t err; int nreqthreads = 0; int totalthreads = 0; spin_lock_t lock = SPIN_LOCK_INITIALIZER; @@ -74,6 +73,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, thread_function (int master) { int timeout; + error_t err; if (wire_threads) thread_wire (wire_threads, hurd_thread_self (), 1); |