fix gethostbyaddr prototype per TOG.
This commit is contained in:
parent
ac67cf2b14
commit
2c0b172d86
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netdb.h,v 1.68 2013/05/04 00:37:47 riz Exp $ */
|
||||
/* $NetBSD: netdb.h,v 1.69 2013/08/19 07:18:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* ++Copyright++ 1980, 1983, 1988, 1993
|
||||
@ -320,7 +320,7 @@ void endservent(void);
|
||||
void freehostent(struct hostent *);
|
||||
#endif
|
||||
#endif
|
||||
struct hostent *gethostbyaddr(const char *, socklen_t, int);
|
||||
struct hostent *gethostbyaddr(const void *, socklen_t, int);
|
||||
struct hostent *gethostbyname(const char *);
|
||||
#if defined(_NETBSD_SOURCE)
|
||||
struct hostent *gethostbyname2(const char *, int);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gethnamaddr.c,v 1.81 2013/08/18 09:57:16 christos Exp $ */
|
||||
/* $NetBSD: gethnamaddr.c,v 1.82 2013/08/19 07:18:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* ++Copyright++ 1985, 1988, 1993
|
||||
@ -57,7 +57,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.81 2013/08/18 09:57:16 christos Exp $");
|
||||
__RCSID("$NetBSD: gethnamaddr.c,v 1.82 2013/08/19 07:18:42 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -1530,7 +1530,7 @@ static struct hostent h_ent;
|
||||
static char h_buf[16384];
|
||||
|
||||
struct hostent *
|
||||
gethostbyaddr(const char *addr, socklen_t len, int af) {
|
||||
gethostbyaddr(const void *addr, socklen_t len, int af) {
|
||||
return gethostbyaddr_r(addr, len, af, &h_ent, h_buf, sizeof(h_buf),
|
||||
&h_errno);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: gethostbyname.3,v 1.28 2006/10/07 21:30:39 apb Exp $
|
||||
.\" $NetBSD: gethostbyname.3,v 1.29 2013/08/19 07:18:42 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1987, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -29,7 +29,7 @@
|
||||
.\"
|
||||
.\" @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
|
||||
.\"
|
||||
.Dd October 7, 2006
|
||||
.Dd August 19, 2013
|
||||
.Dt GETHOSTBYNAME 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -52,7 +52,7 @@
|
||||
.Ft struct hostent *
|
||||
.Fn gethostbyname2 "const char *name" "int af"
|
||||
.Ft struct hostent *
|
||||
.Fn gethostbyaddr "const char *addr" "socklen_t len" "int type"
|
||||
.Fn gethostbyaddr "const void *addr" "socklen_t len" "int type"
|
||||
.Ft struct hostent *
|
||||
.Fn gethostent void
|
||||
.Ft void
|
||||
|
Loading…
Reference in New Issue
Block a user