From d48d85e729f6d7651e276b83ac01d40e467936b8 Mon Sep 17 00:00:00 2001 From: Flávio Cruz Date: Fri, 5 Jun 2015 11:56:20 +0530 Subject: 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. --- ipc/ipc_port.c | 4 ++-- 1 file 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); -- cgit v1.2.3