summaryrefslogtreecommitdiff
path: root/inet/ether_ntoh.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 19:16:25 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 19:16:25 +0000
commit8d59503b977070aaa4e504e8d6dcb7da3711893e (patch)
tree8272c9c2cce43afa4fe4d8d92c269a6435242661 /inet/ether_ntoh.c
parent76a7dc16fab8853ef9230447fa98c70a3619dc6d (diff)
parentbcea9593527d90b9f9ff3817e3fbf0fbc3d01fa7 (diff)
Merge commit 'refs/top-bases/t/gsync-libc-merge' into t/gsync-libc-merge
Diffstat (limited to 'inet/ether_ntoh.c')
-rw-r--r--inet/ether_ntoh.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/inet/ether_ntoh.c b/inet/ether_ntoh.c
index 8063a44bce..56366b961a 100644
--- a/inet/ether_ntoh.c
+++ b/inet/ether_ntoh.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -28,11 +28,6 @@
typedef int (*lookup_function) (const struct ether_addr *, struct etherent *,
char *, size_t, int *);
-/* The lookup function for the first entry of this service. */
-extern int __nss_ethers_lookup (service_user **nip, const char *name,
- void **fctp) internal_function;
-
-
int
ether_ntohost (char *hostname, const struct ether_addr *addr)
{
@@ -50,7 +45,7 @@ ether_ntohost (char *hostname, const struct ether_addr *addr)
if (startp == NULL)
{
- no_more = __nss_ethers_lookup (&nip, "getntohost_r", &fct.ptr);
+ no_more = __nss_ethers_lookup2 (&nip, "getntohost_r", NULL, &fct.ptr);
if (no_more)
startp = (service_user *) -1;
else