diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-22 21:00:34 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-22 21:00:34 +0000 |
commit | be8bc69ff1f75c849d0fb243a8d9ee421ab17bbd (patch) | |
tree | 8ca90b8b49ab5f3cbe3607deb97dbb069115fe56 /pflocal | |
parent | 1977d783a60647a384e6ab79bfd4e63f5b38d0a4 (diff) |
2001-12-22 Roland McGrath <roland@frob.com>
* 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.
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/mig-decls.h | 16 | ||||
-rw-r--r-- | pflocal/sock.h | 6 |
2 files changed, 11 insertions, 11 deletions
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 <miles@gnu.ai.mit.edu> + Written by Miles Bader <miles@gnu.org> 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) diff --git a/pflocal/sock.h b/pflocal/sock.h index 94035759..6bad8af8 100644 --- a/pflocal/sock.h +++ b/pflocal/sock.h @@ -1,8 +1,8 @@ /* Internal sockets - Copyright (C) 1995, 1996, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1995,96,99,2000,01 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Written by Miles Bader <miles@gnu.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -115,7 +115,7 @@ void sock_free (struct sock *sock); void _sock_norefs (struct sock *sock); /* Remove a reference from SOCK, possibly freeing it. */ -extern inline void +static inline void __attribute__ ((unused)) sock_deref (struct sock *sock) { mutex_lock (&sock->lock); |