Module Name:    src
Committed By:   christos
Date:           Sun Aug 18 09:57:16 UTC 2013

Modified Files:
        src/lib/libc/net: gethnamaddr.c

Log Message:
appease lint.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 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.80 src/lib/libc/net/gethnamaddr.c:1.81
--- src/lib/libc/net/gethnamaddr.c:1.80	Fri Aug 16 11:27:12 2013
+++ src/lib/libc/net/gethnamaddr.c	Sun Aug 18 05:57:16 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: gethnamaddr.c,v 1.80 2013/08/16 15:27:12 christos Exp $	*/
+/*	$NetBSD: gethnamaddr.c,v 1.81 2013/08/18 09:57:16 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.80 2013/08/16 15:27:12 christos Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.81 2013/08/18 09:57:16 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -1030,7 +1030,7 @@ _hf_gethtbyaddr(void *rv, void *cb_data,
 	}
 	while ((hp = gethostent_r(hf, info->hp, info->buf, info->buflen,
 	    info->he)) != NULL)
-		if (!memcmp(hp->h_addr_list[0], addr, hp->h_length))
+		if (!memcmp(hp->h_addr_list[0], addr, (size_t)hp->h_length))
 			break;
 	endhostent_r(&hf);
 

Reply via email to