]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Adjust parameters of gethostbyaddr and gethostbyaddr_r.
authorUlrich Drepper <drepper@redhat.com>
Mon, 27 Sep 1999 00:18:24 +0000 (00:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 27 Sep 1999 00:18:24 +0000 (00:18 +0000)
include/netdb.h
resolv/gethnamaddr.c
resolv/netdb.h

index 3311e45046cee0403718caf7c3e1c301408d57a3..8fffe3cc5ddaf945252234da610c56caa87149a3 100644 (file)
@@ -8,7 +8,7 @@ extern int __gethostent_r __P ((struct hostent *__restrict __result_buf,
                                int *__restrict __h_errnop));
 
 extern int __gethostbyaddr_r __P ((__const char *__restrict __addr,
-                                  int __len, int __type,
+                                  size_t __len, int __type,
                                   struct hostent *__restrict __result_buf,
                                   char *__restrict __buf, size_t __buflen,
                                   struct hostent **__restrict __result,
index 9a8efd66d3b787a8fcd8de8eae895b667195b93c..5ebb434c6bf3f2a72214cb33446ffa281488eeb3 100644 (file)
@@ -625,7 +625,8 @@ gethostbyname2(name, af)
 struct hostent *
 gethostbyaddr(addr, len, af)
        const char *addr;       /* XXX should have been def'd as u_char! */
-       int len, af;
+       size_t len;
+       int af;
 {
        const u_char *uaddr = (const u_char *)addr;
        static const u_char mapped[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0xff,0xff };
index 5ad1df2c2199da5044610d46e64fb85308f78956..3afb0516d8c15274c26248c12d19e845f136517e 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,