From 5da9f08469c8143b3f4a06fdf117683e3b1bf394 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 18 Jul 1999 05:33:11 +0000 Subject: Update. * resolv/netdb.h: Adjust parameters of gethostbyaddr and gethostbyaddr_r. * inet/gethstbyad.c: Correct type of len parameter. * inet/gethstbyad_r.c: Likewise. --- ChangeLog | 5 +++++ inet/gethstbyad.c | 4 ++-- inet/gethstbyad_r.c | 4 ++-- resolv/netdb.h | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0df9301da9..181d06de33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-07-17 Ulrich Drepper + * resolv/netdb.h: Adjust parameters of gethostbyaddr and + gethostbyaddr_r. + * inet/gethstbyad.c: Correct type of len parameter. + * inet/gethstbyad_r.c: Likewise. + * sysdeps/unix/sysv/linux/arm/Versions: Undo last change. 1999-07-17 Zack Weinberg diff --git a/inet/gethstbyad.c b/inet/gethstbyad.c index 410abe2342..8183ddfd28 100644 --- a/inet/gethstbyad.c +++ b/inet/gethstbyad.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -23,7 +23,7 @@ #define LOOKUP_TYPE struct hostent #define FUNCTION_NAME gethostbyaddr #define DATABASE_NAME hosts -#define ADD_PARAMS const char *addr, int len, int type +#define ADD_PARAMS const char *addr, size_t len, int type #define ADD_VARIABLES addr, len, type #define BUFLEN 1024 #define NEED_H_ERRNO 1 diff --git a/inet/gethstbyad_r.c b/inet/gethstbyad_r.c index 175253d9ab..366cd55f17 100644 --- a/inet/gethstbyad_r.c +++ b/inet/gethstbyad_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -23,7 +23,7 @@ #define LOOKUP_TYPE struct hostent #define FUNCTION_NAME gethostbyaddr #define DATABASE_NAME hosts -#define ADD_PARAMS const char *addr, int len, int type +#define ADD_PARAMS const char *addr, size_t len, int type #define ADD_VARIABLES addr, len, type #define NEED_H_ERRNO 1 #define NEED__RES 1 diff --git a/resolv/netdb.h b/resolv/netdb.h index 5ad1df2c21..3afb0516d8 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -113,7 +113,7 @@ extern struct hostent *gethostent __P ((void)); /* Return entry from host data base which address match ADDR with length LEN and type TYPE. */ -extern struct hostent *gethostbyaddr __P ((__const char *__addr, int __len, +extern struct hostent *gethostbyaddr __P ((__const char *__addr, size_t __len, int __type)); /* Return entry from host data base for host with NAME. */ @@ -135,7 +135,7 @@ extern int gethostent_r __P ((struct hostent *__restrict __result_buf, struct hostent **__restrict __result, int *__restrict __h_errnop)); -extern int gethostbyaddr_r __P ((__const char *__restrict __addr, int __len, +extern int gethostbyaddr_r __P ((__const char *__restrict __addr, size_t __len, int __type, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, -- cgit v1.2.3