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,
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 };
/* 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. */
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,