aboutsummaryrefslogtreecommitdiff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/getnameinfo.c3
-rw-r--r--inet/getnetgrent_r.c3
-rw-r--r--inet/rcmd.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 2bba606..a7cdb07 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -63,6 +63,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static char *
+internal_function
nrl_domainname (void)
{
static char *domain = NULL;
@@ -258,13 +259,11 @@ getnameinfo (const struct sockaddr *sa, size_t addrlen, char *host,
else
{
const char *c;
-#if INET6
if (sa->sa_family == AF_INET6)
c = inet_ntop (AF_INET6,
(void *) &(((struct sockaddr_in6 *) sa)->sin6_addr),
host, hostlen);
else
-#endif /* INET6 */
c = inet_ntop (AF_INET,
(void *) &(((struct sockaddr_in *) sa)->sin_addr),
host, hostlen);
diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c
index 5afe825..a388d86 100644
--- a/inet/getnetgrent_r.c
+++ b/inet/getnetgrent_r.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -91,6 +91,7 @@ free_memory (struct __netgrent *data)
}
static int
+internal_function
__internal_setnetgrent_reuse (const char *group, struct __netgrent *datap)
{
enum nss_status (*fct) (const char *, struct __netgrent *);
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 6a680c1..92ce094 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -55,7 +55,7 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
int __ivaliduser __P((FILE *, u_int32_t, const char *, const char *));
-static int __icheckhost __P((u_int32_t, char *));
+static int __icheckhost __P((u_int32_t, char *)) internal_function;
int
rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
@@ -426,6 +426,7 @@ __ivaliduser(hostf, raddr, luser, ruser)
* Returns "true" if match, 0 if no match.
*/
static int
+internal_function
__icheckhost(raddr, lhost)
u_int32_t raddr;
register char *lhost;