Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/inet/inet_net_ntop.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/inet/inet_net_ntop.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- src/lib/libc/inet/inet_net_ntop.c 2012/03/20 17:08:13 1.3 +++ src/lib/libc/inet/inet_net_ntop.c 2017/05/09 02:56:44 1.4 @@ -20,7 +20,7 @@ #ifdef notdef static const char rcsid[] = "Id: inet_net_ntop.c,v 1.1.2.1 2002/08/02 02:17:21 marka Exp "; #else -__RCSID("$NetBSD: inet_net_ntop.c,v 1.3 2012/03/20 17:08:13 matt Exp $"); +__RCSID("$NetBSD: inet_net_ntop.c,v 1.4 2017/05/09 02:56:44 maya Exp $"); #endif #endif @@ -199,7 +199,7 @@ inet_net_ntop_ipv6(const u_char *src, in memset(inbuf + p, 0, 16 - p); b = bits % 8; if (b != 0) { - m = ~0 << (8 - b); + m = ~0u << (8 - b); inbuf[p-1] &= m; }