summaryrefslogtreecommitdiff
path: root/pflocal
diff options
context:
space:
mode:
Diffstat (limited to 'pflocal')
-rw-r--r--pflocal/mig-decls.h16
-rw-r--r--pflocal/sock.h6
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);