Module Name:    src
Committed By:   bouyer
Date:           Thu Dec 19 08:11:45 UTC 2013

Modified Files:
        src/lib/libc/net [netbsd-5]: gethnamaddr.c

Log Message:
Fix ticket 1887: fix gethostbyaddr prototype, second argument is socklen_t
not size_t.


To generate a diff of this commit:
cvs rdiff -u -r1.73.18.1 -r1.73.18.2 src/lib/libc/net/gethnamaddr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/net/gethnamaddr.c
diff -u src/lib/libc/net/gethnamaddr.c:1.73.18.1 src/lib/libc/net/gethnamaddr.c:1.73.18.2
--- src/lib/libc/net/gethnamaddr.c:1.73.18.1	Wed Dec 18 20:23:35 2013
+++ src/lib/libc/net/gethnamaddr.c	Thu Dec 19 08:11:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: gethnamaddr.c,v 1.73.18.1 2013/12/18 20:23:35 bouyer Exp $	*/
+/*	$NetBSD: gethnamaddr.c,v 1.73.18.2 2013/12/19 08:11:45 bouyer 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.73.18.1 2013/12/18 20:23:35 bouyer Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.73.18.2 2013/12/19 08:11:45 bouyer Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -1298,7 +1298,7 @@ static struct hostent h_ent;
 static char h_buf[16384];
 
 struct hostent *
-gethostbyaddr(const char *addr, size_t len, int af) {
+gethostbyaddr(const char *addr, socklen_t len, int af) {
 	return gethostbyaddr_r(addr, len, af, &h_ent, h_buf, sizeof(h_buf),
 	    &h_errno);
 }

Reply via email to