aboutsummaryrefslogtreecommitdiff
path: root/inet/ether_ntoh.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-13 16:09:41 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-13 16:09:41 +0000
commit3f73836632c221bd952d0cee6abdd88b35963965 (patch)
tree31f7ff06e8092382a1319d723c64869ce6ed7d2d /inet/ether_ntoh.c
parent234669e2687f707441040f90a9114133a77babe3 (diff)
downloadglibc-3f73836632c221bd952d0cee6abdd88b35963965.zip
glibc-3f73836632c221bd952d0cee6abdd88b35963965.tar.gz
glibc-3f73836632c221bd952d0cee6abdd88b35963965.tar.bz2
Update.
2001-01-13 Jakub Jelinek <jakub@redhat.com> * inet/ether_ntoh.c (lookup_function): Change arguments to match _nss_*_getntohost_r prototype. (ether_ntohost): Pass errno pointer to NSS function. 2001-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value. (MAP_LOCKED): New definition. (MAP_NORESERVE): New definition.
Diffstat (limited to 'inet/ether_ntoh.c')
-rw-r--r--inet/ether_ntoh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/inet/ether_ntoh.c b/inet/ether_ntoh.c
index d26ec3b..43299b9 100644
--- a/inet/ether_ntoh.c
+++ b/inet/ether_ntoh.c
@@ -17,6 +17,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#include <errno.h>
#include <netinet/ether.h>
#include <netinet/if_ether.h>
#include <string.h>
@@ -26,7 +27,7 @@
/* Type of the lookup function we need here. */
typedef int (*lookup_function) (const struct ether_addr *, struct etherent *,
- char *, int);
+ 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,
@@ -65,7 +66,7 @@ ether_ntohost (char *hostname, const struct ether_addr *addr)
{
char buffer[1024];
- status = (*fct) (addr, &etherent, buffer, sizeof buffer);
+ status = (*fct) (addr, &etherent, buffer, sizeof buffer, &errno);
no_more = __nss_next (&nip, "getntohost_r", (void **) &fct, status, 0);
}