From 34a4d241c657c74feb64c3b9f81fad6a1d3ea0e8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 15 Feb 2018 00:41:13 +1100 Subject: [PATCH] shift unsigned (~0U) rather than signed (~0) contant --- lib/isc/unix/ifiter_ioctl.c | 7 ++++--- util/copyrights | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/isc/unix/ifiter_ioctl.c b/lib/isc/unix/ifiter_ioctl.c index 5648811ab7..cd1becd5c3 100644 --- a/lib/isc/unix/ifiter_ioctl.c +++ b/lib/isc/unix/ifiter_ioctl.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1999-2009, 2014-2017 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 1999-2009, 2014-2018 Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -555,7 +555,8 @@ internal_current4(isc_interfaceiter_t *iter) { bits = 8 - prefixlen; prefixlen = 0; } - iter->current.netmask.type.in6.s6_addr[i] = (~0 << bits) & 0xff; + iter->current.netmask.type.in6.s6_addr[i] = + (~0U << bits) & 0xff; } return (ISC_R_SUCCESS); @@ -749,7 +750,7 @@ internal_current6(isc_interfaceiter_t *iter) { bits = lifreq.lifr_addrlen - i; bits = (bits < 8) ? (8 - bits) : 0; iter->current.netmask.type.in6.s6_addr[i / 8] = - (~0 << bits) & 0xff; + (~0U << bits) & 0xff; } return (ISC_R_SUCCESS); diff --git a/util/copyrights b/util/copyrights index 07f2030fc3..67c4e70648 100644 --- a/util/copyrights +++ b/util/copyrights @@ -4077,7 +4077,7 @@ ./lib/isc/unix/file.c C 2000,2001,2002,2004,2005,2007,2009,2011,2012,2013,2014,2015,2016,2017 ./lib/isc/unix/fsaccess.c C 2000,2001,2004,2005,2006,2007,2016 ./lib/isc/unix/ifiter_getifaddrs.c C 2003,2004,2005,2007,2008,2009,2014,2016 -./lib/isc/unix/ifiter_ioctl.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2014,2015,2016,2017 +./lib/isc/unix/ifiter_ioctl.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2014,2015,2016,2017,2018 ./lib/isc/unix/ifiter_sysctl.c C 1999,2000,2001,2002,2003,2004,2005,2007,2014,2015,2016 ./lib/isc/unix/include/Makefile.in MAKE 1998,1999,2000,2001,2004,2007,2012,2014,2016 ./lib/isc/unix/include/isc/Makefile.in MAKE 1998,1999,2000,2001,2004,2007,2012,2013,2014,2015,2016