Change the `len' arguemtn to gethostbyaddr(3) from int to socklen_t in
accordance with XNS5.2; fixes PR standards/12703.
This commit is contained in:
parent
d36c721835
commit
91491e8dda
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netdb.h,v 1.20 2000/07/30 06:33:18 lukem Exp $ */
|
||||
/* $NetBSD: netdb.h,v 1.21 2001/04/26 12:55:31 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -259,7 +259,7 @@ void endservent __P((void));
|
|||
#if !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE - 0) >= 500
|
||||
void freehostent __P((struct hostent *));
|
||||
#endif
|
||||
struct hostent *gethostbyaddr __P((const char *, int, int));
|
||||
struct hostent *gethostbyaddr __P((const char *, socklen_t, int));
|
||||
struct hostent *gethostbyname __P((const char *));
|
||||
#if !defined(_XOPEN_SOURCE)
|
||||
struct hostent *gethostbyname2 __P((const char *, int));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gethnamaddr.c,v 1.39 2000/12/20 20:51:08 christos Exp $ */
|
||||
/* $NetBSD: gethnamaddr.c,v 1.40 2001/04/26 12:55:32 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* ++Copyright++ 1985, 1988, 1993
|
||||
|
@ -61,7 +61,7 @@
|
|||
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
|
||||
static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
|
||||
#else
|
||||
__RCSID("$NetBSD: gethnamaddr.c,v 1.39 2000/12/20 20:51:08 christos Exp $");
|
||||
__RCSID("$NetBSD: gethnamaddr.c,v 1.40 2001/04/26 12:55:32 kleink Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -666,7 +666,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;
|
||||
socklen_t len;
|
||||
int af;
|
||||
{
|
||||
const u_char *uaddr = (const u_char *)addr;
|
||||
int size;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: gethostbyname.3,v 1.18 2001/02/28 02:30:31 itojun Exp $
|
||||
.\" $NetBSD: gethostbyname.3,v 1.19 2001/04/26 12:55:32 kleink Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1987, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
.\"
|
||||
.\" @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
|
||||
.\"
|
||||
.Dd January 16, 1999
|
||||
.Dd April 26, 2001
|
||||
.Dt GETHOSTBYNAME 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -55,7 +55,7 @@
|
|||
.Ft struct hostent *
|
||||
.Fn gethostbyname2 "const char *name" "int af"
|
||||
.Ft struct hostent *
|
||||
.Fn gethostbyaddr "const char *addr" "int len" "int type"
|
||||
.Fn gethostbyaddr "const char *addr" "socklen_t len" "int type"
|
||||
.Ft void
|
||||
.Fn sethostent "int stayopen"
|
||||
.Ft void
|
||||
|
|
Loading…
Reference in New Issue