diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-07-18 23:18:26 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-07-18 23:18:26 +0000 |
commit | 91871af57d44f462c76b1891b5fe67a804b7e233 (patch) | |
tree | e3bc352714ea6cabe09e97baeaeb4cd2186e2067 | |
parent | 585b7abf4adb8c30bfc4398ae8d239a42b27d885 (diff) |
(thread_timeout, server_timeout): New vars.
(THREAD_TIMEOUT, SERVER_TIMEOUT): Delete macros.
(master_thread_function): Use vars instead of macros.
-rw-r--r-- | libdiskfs/init-first.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdiskfs/init-first.c b/libdiskfs/init-first.c index fb8345bb..1bbd75ab 100644 --- a/libdiskfs/init-first.c +++ b/libdiskfs/init-first.c @@ -21,10 +21,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" -#define THREAD_TIMEOUT 1000 * 60 * 2 /* two minutes */ -#define SERVER_TIMEOUT 1000 * 60 * 10 /* ten minutes */ +static int thread_timeout = 1000 * 60 * 2; /* two minutes */ +static int server_timeout = 1000 * 60 * 10; /* ten minutes */ + -static void master_thread_function (any_t foo __attribute__ ((unused))) { error_t err; @@ -33,8 +33,8 @@ master_thread_function (any_t foo __attribute__ ((unused))) { ports_manage_port_operations_multithread (diskfs_port_bucket, diskfs_demuxer, - THREAD_TIMEOUT, - SERVER_TIMEOUT, + thread_timeout, + server_timeout, 1, MACH_PORT_NULL); err = diskfs_shutdown (0); } |