summaryrefslogtreecommitdiff
path: root/resolv/netdb.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-18 05:33:11 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-18 05:33:11 +0000
commit5da9f08469c8143b3f4a06fdf117683e3b1bf394 (patch)
tree61027580d82c0daec9b017873ef6ee8cff6cd7bb /resolv/netdb.h
parent6bd7b31b9ce39da00f952a39d2253634e15b2dd5 (diff)
downloadglibc-5da9f08469c8143b3f4a06fdf117683e3b1bf394.tar.gz
Update.
* resolv/netdb.h: Adjust parameters of gethostbyaddr and gethostbyaddr_r. * inet/gethstbyad.c: Correct type of len parameter. * inet/gethstbyad_r.c: Likewise.
Diffstat (limited to 'resolv/netdb.h')
-rw-r--r--resolv/netdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index 5ad1df2c21..3afb0516d8 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -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,