From be8bc69ff1f75c849d0fb243a8d9ee421ab17bbd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 22 Dec 2001 21:00:34 +0000 Subject: 2001-12-22 Roland McGrath * sock.h (sock_deref): Don't define this extern inline. Instead, use static inline and __attribute__ ((unused)). * mig-decls.h (begin_using_sock_user_port): Likewise. (end_using_sock_user_port): Likewise. (begin_using_addr_port): Likewise. (end_using_addr_port): Likewise. --- pflocal/mig-decls.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pflocal/mig-decls.h') diff --git a/pflocal/mig-decls.h b/pflocal/mig-decls.h index fe4aefdf..983de9d1 100644 --- a/pflocal/mig-decls.h +++ b/pflocal/mig-decls.h @@ -1,8 +1,8 @@ /* Type decls for mig-produced server stubs - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995,2001 Free Software Foundation, Inc. - Written by Miles Bader + Written by Miles Bader This file is part of the GNU Hurd. @@ -30,26 +30,26 @@ typedef struct sock_user *sock_user_t; typedef struct addr *addr_t; -extern inline -sock_user_t begin_using_sock_user_port(mach_port_t port) +static inline sock_user_t __attribute__ ((unused)) +begin_using_sock_user_port(mach_port_t port) { return (sock_user_t)ports_lookup_port (0, port, sock_user_port_class); } -extern inline void +static inline void __attribute__ ((unused)) end_using_sock_user_port (sock_user_t sock_user) { if (sock_user != NULL) ports_port_deref (sock_user); } -extern inline -addr_t begin_using_addr_port(mach_port_t port) +static inline addr_t __attribute__ ((unused)) +begin_using_addr_port(mach_port_t port) { return (addr_t)ports_lookup_port (0, port, addr_port_class); } -extern inline void +static inline void __attribute__ ((unused)) end_using_addr_port (addr_t addr) { if (addr != NULL) -- cgit v1.2.3