diff options
author | Flávio Cruz <flaviocruz@gmail.com> | 2015-06-05 11:56:20 +0530 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-06-05 12:05:37 +0530 |
commit | d48d85e729f6d7651e276b83ac01d40e467936b8 (patch) | |
tree | 199c9cca16c0a458cdea72de1c727f46f8bccc1e /ipc | |
parent | 0d44362ce83ed75ea0bd0d24a5461c93561e8b11 (diff) |
Use custom port macros.
* ipc/ipc_port.c (ipc_port_alloc_special): Use ip_alloc and ip_lock_init
macros instead of manually inlining them.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_port.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c index 89a5d67..86a4ee2 100644 --- a/ipc/ipc_port.c +++ b/ipc/ipc_port.c @@ -1178,11 +1178,11 @@ ipc_port_alloc_special(ipc_space_t space) { ipc_port_t port; - port = (ipc_port_t) io_alloc(IOT_PORT); + port = ip_alloc(); if (port == IP_NULL) return IP_NULL; - io_lock_init(&port->ip_object); + ip_lock_init(port); port->ip_references = 1; port->ip_object.io_bits = io_makebits(TRUE, IOT_PORT, 0); |