Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net appease lint.



details:   https://anonhg.NetBSD.org/src/rev/b5e06af4ba47
branches:  trunk
changeset: 789409:b5e06af4ba47
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 18 09:57:16 2013 +0000

description:
appease lint.

diffstat:

 lib/libc/net/gethnamaddr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6144ab7bf2a5 -r b5e06af4ba47 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Sun Aug 18 09:31:38 2013 +0000
+++ b/lib/libc/net/gethnamaddr.c        Sun Aug 18 09:57:16 2013 +0000
@@ -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 @@
        }
        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);
 



Home | Main Index | Thread Index | Old Index