]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 18 Jul 1999 16:05:57 +0000 (16:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 18 Jul 1999 16:05:57 +0000 (16:05 +0000)
1999-07-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

* nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Follow change from
1999-07-17 and adjust len parameter.
* nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
* nscd/gethstbyad_r.c (ADD_PARAMS): Likewise.
* manual/socket.texi (Host Names): Likewise.
* nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
* nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
Likewise.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
* resolv/gethnamaddr.c (gethostbyaddr): Likewise.
(ht_gethostbyaddr): Likewise.
(_gethtbyaddr): Likewise.

ChangeLog
manual/socket.texi
nis/nss_nis/nis-hosts.c
nis/nss_nisplus/nisplus-hosts.c
nscd/gethstbyad_r.c
nscd/nscd_gethst_r.c
nscd/nscd_proto.h
resolv/gethnamaddr.c
resolv/nss_dns/dns-host.c

index c4eee47bfafd5183a4401ca51931701a5e06405b..ead6b574eb20447e78464f67fe951de2fd8887c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+1999-07-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
+
+       * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Follow change from
+       1999-07-17 and adjust len parameter.
+       * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
+       * nscd/gethstbyad_r.c (ADD_PARAMS): Likewise.
+       * manual/socket.texi (Host Names): Likewise.
+       * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
+       * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
+       Likewise.
+       * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
+       * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
+       (ht_gethostbyaddr): Likewise.
+       (_gethtbyaddr): Likewise.
+
 1999-07-17  Ulrich Drepper  <drepper@cygnus.com>
 
        * resolv/netdb.h: Adjust parameters of gethostbyaddr and
index b89a63f5ce3902bbc85ea29bed2633495b7cb4d3..448962f910f8e5900459d4ea76eed2c7e7996779 100644 (file)
@@ -1219,7 +1219,7 @@ allows the caller to specify the desired address family (e.g.@:
 
 @comment netdb.h
 @comment BSD
-@deftypefun {struct hostent *} gethostbyaddr (const char *@var{addr}, int @var{length}, int @var{format})
+@deftypefun {struct hostent *} gethostbyaddr (const char *@var{addr}, size_t @var{length}, int @var{format})
 The @code{gethostbyaddr} function returns information about the host
 with Internet address @var{addr}.  The parameter @var{addr} is not
 really a pointer to char - it can be a pointer to an IPv4 or an IPv6
@@ -1332,7 +1332,7 @@ allows the caller to specify the desired address family (e.g.@:
 
 @comment netdb.h
 @comment GNU
-@deftypefun int gethostbyaddr_r (const char *@var{addr}, int @var{length}, int @var{format}, struct hostent *restrict @var{result_buf}, char *restrict @var{buf}, size_t @var{buflen}, struct hostent **restrict @var{result}, int *restrict @var{h_errnop})
+@deftypefun int gethostbyaddr_r (const char *@var{addr}, size_t @var{length}, int @var{format}, struct hostent *restrict @var{result_buf}, char *restrict @var{buf}, size_t @var{buflen}, struct hostent **restrict @var{result}, int *restrict @var{h_errnop})
 The @code{gethostbyaddr_r} function returns information about the host
 with Internet address @var{addr}.  The parameter @var{addr} is not
 really a pointer to char - it can be a pointer to an IPv4 or an IPv6
index d791b98b3ed2d5046fb04342debdbbe328876076..ddf777a70600a15dd7409bc0aa409834e26c9f89 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 Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1996.
 
@@ -341,7 +341,7 @@ _nss_nis_gethostbyname_r (const char *name, struct hostent *host, char *buffer,
 }
 
 enum nss_status
-_nss_nis_gethostbyaddr_r (char *addr, int addrlen, int type,
+_nss_nis_gethostbyaddr_r (char *addr, size_t addrlen, int type,
                          struct hostent *host, char *buffer, size_t buflen,
                          int *errnop, int *h_errnop)
 {
index 375315b2edbd30b1c827429ace6d5eb387776d0a..964729cdc4e84b1780e9f554e9e118c75158f261 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
 
@@ -418,7 +418,7 @@ _nss_nisplus_gethostbyname_r (const char *name, struct hostent *host,
 }
 
 enum nss_status
-_nss_nisplus_gethostbyaddr_r (const char *addr, int addrlen, int type,
+_nss_nisplus_gethostbyaddr_r (const char *addr, size_t addrlen, int type,
                              struct hostent *host, char *buffer,
                              size_t buflen, int *errnop, int *herrnop)
 {
index c22044aac19cdc06ba7618e9261792c7560b47bc..d68d4f258be5c8967d80e093cb71f6b92ded36bc 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 5dbe05d938c41b8ae3014e3c73a76956f935acd0..c4ab3642c5b991a694f0f81cb34d4211bf7c1169 100644 (file)
@@ -67,7 +67,7 @@ __nscd_gethostbyname2_r (const char *name, int af, struct hostent *resultbuf,
 
 
 int
-__nscd_gethostbyaddr_r (const char *addr, int len, int type,
+__nscd_gethostbyaddr_r (const char *addr, size_t len, int type,
                        struct hostent *resultbuf, char *buffer, size_t buflen,
                        int *h_errnop)
 {
index 760b57de76e924a596b82bf306d8b3b6be8b9c1a..d9b92bf06680aa2f3aa12db6af3fe166fd37ccf4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@uni-paderborn.de>, 1998.
 
@@ -45,7 +45,7 @@ extern int __nscd_gethostbyname2_r __P ((const char *name, int af,
                                         struct hostent *resultbuf,
                                         char *buffer, size_t buflen,
                                         int *h_errnop));
-extern int __nscd_gethostbyaddr_r __P ((const char *addr, int len, int type,
+extern int __nscd_gethostbyaddr_r __P ((const char *addr, size_t len, int type,
                                        struct hostent *resultbuf,
                                        char *buffer, size_t buflen,
                                        int *h_errnop));
index 4a85460983aeed3de6f77df12e8fcbe4a36f7ba2..4484b81ce70a4fe8fe23f2d101a9bc7395ac243d 100644 (file)
@@ -621,7 +621,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 };
@@ -869,7 +870,8 @@ _gethtbyname2(name, af)
 struct hostent *
 _gethtbyaddr(addr, len, af)
        const char *addr;
-       int len, af;
+       size_t len;
+       int af;
 {
        register struct hostent *p;
 
@@ -1000,7 +1002,8 @@ ht_gethostbyname(name)
 struct hostent *
 ht_gethostbyaddr(addr, len, af)
        const char *addr;
-       int len, af;
+       size_t len;
+       int af;
 {
        return (_gethtbyaddr(addr, len, af));
 }
index 16146ed4e0ebb173be9c55cf457e05b98bfadfd8..1df7c23beb9f5ed9f8acac1027b7c43685cd5a6a 100644 (file)
@@ -191,7 +191,7 @@ _nss_dns_gethostbyname_r (const char *name, struct hostent *result,
 
 
 enum nss_status
-_nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
+_nss_dns_gethostbyaddr_r (const char *addr, size_t len, int af,
                          struct hostent *result, char *buffer, size_t buflen,
                          int *errnop, int *h_errnop)
 {
@@ -207,7 +207,8 @@ _nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
   } *host_data = (struct host_data *) buffer;
   querybuf host_buffer;
   char qbuf[MAXDNAME+1], *qp;
-  int size, n, status;
+  size_t size;
+  int n, status;
 
   if (af == AF_INET6 && len == IN6ADDRSZ &&
       (memcmp (uaddr, mapped, sizeof mapped) == 0
This page took 0.894971 seconds and 5 git commands to generate.