Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 18 Jul 1999 05:33:11 +0000 (05:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 18 Jul 1999 05:33:11 +0000 (05:33 +0000)
* resolv/netdb.h: Adjust parameters of gethostbyaddr and
gethostbyaddr_r.
* inet/gethstbyad.c: Correct type of len parameter.
* inet/gethstbyad_r.c: Likewise.

ChangeLog
inet/gethstbyad.c
inet/gethstbyad_r.c
resolv/netdb.h

index 0df9301..181d06d 100644 (file)
--- 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>
index 410abe2..8183ddf 100644 (file)
@@ -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
index 175253d..366cd55 100644 (file)
@@ -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
index 5ad1df2..3afb051 100644 (file)
@@ -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,