Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src fix gethostbyaddr prototype per TOG.
details: https://anonhg.NetBSD.org/src/rev/e775ea86545c
branches: trunk
changeset: 789455:e775ea86545c
user: christos <christos%NetBSD.org@localhost>
date: Mon Aug 19 07:18:42 2013 +0000
description:
fix gethostbyaddr prototype per TOG.
diffstat:
include/netdb.h | 4 ++--
lib/libc/net/gethnamaddr.c | 6 +++---
lib/libc/net/gethostbyname.3 | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r e2b88a2e1e22 -r e775ea86545c include/netdb.h
--- a/include/netdb.h Mon Aug 19 07:06:06 2013 +0000
+++ b/include/netdb.h Mon Aug 19 07:18:42 2013 +0000
@@ -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 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);
diff -r e2b88a2e1e22 -r e775ea86545c lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c Mon Aug 19 07:06:06 2013 +0000
+++ b/lib/libc/net/gethnamaddr.c Mon Aug 19 07:18:42 2013 +0000
@@ -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 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);
}
diff -r e2b88a2e1e22 -r e775ea86545c lib/libc/net/gethostbyname.3
--- a/lib/libc/net/gethostbyname.3 Mon Aug 19 07:06:06 2013 +0000
+++ b/lib/libc/net/gethostbyname.3 Mon Aug 19 07:18:42 2013 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index