From 3f73836632c221bd952d0cee6abdd88b35963965 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 13 Jan 2001 16:09:41 +0000 Subject: Update. 2001-01-13 Jakub Jelinek * 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 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value. (MAP_LOCKED): New definition. (MAP_NORESERVE): New definition. --- inet/ether_ntoh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inet/ether_ntoh.c') diff --git a/inet/ether_ntoh.c b/inet/ether_ntoh.c index d26ec3b317..43299b9135 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 #include #include #include @@ -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, ðerent, buffer, sizeof buffer); + status = (*fct) (addr, ðerent, buffer, sizeof buffer, &errno); no_more = __nss_next (&nip, "getntohost_r", (void **) &fct, status, 0); } -- cgit v1.2.3