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>
-/* 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.
#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
-/* 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.
#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
/* 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. */
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,