about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--inet/gethstbyad.c4
-rw-r--r--inet/gethstbyad_r.c4
-rw-r--r--resolv/netdb.h4
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  <drepper@cygnus.com>
 
+	* 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  <zack@rabi.columbia.edu>
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 <drepper@cygnus.com>, 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 <drepper@cygnus.com>, 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,