Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net pacify lint. from he@netbsd



details:   https://anonhg.NetBSD.org/src/rev/29c27cadcd48
branches:  trunk
changeset: 533490:29c27cadcd48
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jul 01 22:05:08 2002 +0000

description:
pacify lint.  from he@netbsd

diffstat:

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

diffs (27 lines):

diff -r 609e9d1ffe8e -r 29c27cadcd48 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c        Mon Jul 01 21:05:56 2002 +0000
+++ b/lib/libc/net/getaddrinfo.c        Mon Jul 01 22:05:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getaddrinfo.c,v 1.60 2002/07/01 21:05:56 itojun Exp $  */
+/*     $NetBSD: getaddrinfo.c,v 1.61 2002/07/01 22:05:08 itojun Exp $  */
 /*     $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $    */
 
 /*
@@ -79,7 +79,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getaddrinfo.c,v 1.60 2002/07/01 21:05:56 itojun Exp $");
+__RCSID("$NetBSD: getaddrinfo.c,v 1.61 2002/07/01 22:05:08 itojun Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -1103,7 +1103,7 @@
   trynumeric:
        errno = 0;
        lscopeid = strtoul(scope, &ep, 10);
-       *scopeid = (u_int32_t)(lscopeid & 0xffffffff);
+       *scopeid = (u_int32_t)(lscopeid & 0xffffffffUL);
        if (errno == 0 && ep && *ep == '\0' && *scopeid == lscopeid)
                return 0;
        else



Home | Main Index | Thread Index | Old Index