Module Name: src Committed By: christos Date: Mon Aug 19 07:18:42 UTC 2013
Modified Files: src/include: netdb.h src/lib/libc/net: gethnamaddr.c gethostbyname.3 Log Message: fix gethostbyaddr prototype per TOG. To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/include/netdb.h cvs rdiff -u -r1.81 -r1.82 src/lib/libc/net/gethnamaddr.c cvs rdiff -u -r1.28 -r1.29 src/lib/libc/net/gethostbyname.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/netdb.h diff -u src/include/netdb.h:1.68 src/include/netdb.h:1.69 --- src/include/netdb.h:1.68 Fri May 3 20:37:47 2013 +++ src/include/netdb.h Mon Aug 19 03:18:42 2013 @@ -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); Index: src/lib/libc/net/gethnamaddr.c diff -u src/lib/libc/net/gethnamaddr.c:1.81 src/lib/libc/net/gethnamaddr.c:1.82 --- src/lib/libc/net/gethnamaddr.c:1.81 Sun Aug 18 05:57:16 2013 +++ src/lib/libc/net/gethnamaddr.c Mon Aug 19 03:18:42 2013 @@ -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); } Index: src/lib/libc/net/gethostbyname.3 diff -u src/lib/libc/net/gethostbyname.3:1.28 src/lib/libc/net/gethostbyname.3:1.29 --- src/lib/libc/net/gethostbyname.3:1.28 Sat Oct 7 17:30:39 2006 +++ src/lib/libc/net/gethostbyname.3 Mon Aug 19 03:18:42 2013 @@ -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