diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-01-06 22:07:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-01-06 22:07:28 +0000 |
commit | df4ef2ab9c0899b2670067cd97e58f7eb2913e00 (patch) | |
tree | 4cb343b5ba9ccdc9c0b96144412567b6a4eda0ee /resolv/nss_dns/dns-host.c | |
parent | 6f9e7002f38ae778b3ff2f586a3e5766382228e9 (diff) | |
download | glibc-df4ef2ab9c0899b2670067cd97e58f7eb2913e00.tar.gz glibc-df4ef2ab9c0899b2670067cd97e58f7eb2913e00.tar.xz glibc-df4ef2ab9c0899b2670067cd97e58f7eb2913e00.zip |
update from main archive 960105 cvs/libc-970107 cvs/libc-970106
Diffstat (limited to 'resolv/nss_dns/dns-host.c')
-rw-r--r-- | resolv/nss_dns/dns-host.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index e4a9c788ce..6ddf11cb53 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Extended from original form by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -119,12 +119,12 @@ typedef union querybuf static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, - struct hostent *result, - char *buffer, int buflen, int *h_errnop); + struct hostent *result, char *buffer, + size_t buflen, int *h_errnop); enum nss_status _nss_dns_gethostbyname2_r (const char *name, int af, struct hostent *result, - char *buffer, int buflen, int *h_errnop) + char *buffer, size_t buflen, int *h_errnop) { struct host_data { @@ -253,7 +253,7 @@ _nss_dns_gethostbyname2_r (const char *name, int af, struct hostent *result, enum nss_status _nss_dns_gethostbyname_r (const char *name, struct hostent *result, - char *buffer, int buflen, int *h_errnop) + char *buffer, size_t buflen, int *h_errnop) { enum nss_status status = NSS_STATUS_NOTFOUND; @@ -270,7 +270,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, - struct hostent *result, char *buffer, int buflen, + struct hostent *result, char *buffer, size_t buflen, int *h_errnop) { static const u_char mapped[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0xff,0xff }; @@ -368,7 +368,8 @@ _nss_dns_gethostbyaddr_r (const char *addr, int len, int af, static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, - struct hostent *result, char *buffer, int buflen, int *h_errnop) + struct hostent *result, char *buffer, size_t buflen, + int *h_errnop) { struct host_data { |