summaryrefslogtreecommitdiff
path: root/libtrivfs/handle-port.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-30 17:36:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-30 17:36:29 +0000
commit819a5d5ee8ebf6521408ccbad8e71b8db49009f9 (patch)
tree18d6572d2587da70fc5d766a420d67f20819d336 /libtrivfs/handle-port.c
parent1461be73d18e1e91fee089605841eef06a5594d2 (diff)
(trivfs_handle_port): Initialize CNTL->lock.
Diffstat (limited to 'libtrivfs/handle-port.c')
-rw-r--r--libtrivfs/handle-port.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtrivfs/handle-port.c b/libtrivfs/handle-port.c
index 7f29597c..5b64e968 100644
--- a/libtrivfs/handle-port.c
+++ b/libtrivfs/handle-port.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -27,5 +27,6 @@ trivfs_handle_port (mach_port_t realnode,
cntl = ports_allocate_port (sizeof (struct trivfs_control), cntltype);
cntl->underlying = realnode;
cntl->protidtypes = protidtype;
+ mutex_init (&cntl->lock);
return ports_get_right (cntl);
}