]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
make both arguments of & unsigned
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 01:08:52 +0000 (12:08 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 03:08:26 +0000 (14:08 +1100)
lib/dns/byaddr.c
util/copyrights

index 19253e7b28d64b15b7ab3cacf946e655dd9ce5a6..22ba897d3f5340ca34f7197eefdfed80ac3237d5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2000-2005, 2007, 2009, 2013, 2016, 2017  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2000-2005, 2007, 2009, 2013, 2016-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
@@ -75,10 +75,10 @@ dns_byaddr_createptrname2(const isc_netaddr_t *address, unsigned int options,
        if (address->family == AF_INET) {
                (void)snprintf(textname, sizeof(textname),
                               "%u.%u.%u.%u.in-addr.arpa.",
-                              (bytes[3] & 0xff),
-                              (bytes[2] & 0xff),
-                              (bytes[1] & 0xff),
-                              (bytes[0] & 0xff));
+                              (bytes[3] & 0xffU),
+                              (bytes[2] & 0xffU),
+                              (bytes[1] & 0xffU),
+                              (bytes[0] & 0xffU));
        } else if (address->family == AF_INET6) {
                size_t remaining;
 
index 35765b6038d8065d6c21e1e747afa7fefb9f0fd5..5d14fe865738b826001aec18c48170b30f3abaea 100644 (file)
 ./lib/dns/adb.c                                        C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
 ./lib/dns/api                                  X       1999,2000,2001,2006,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
 ./lib/dns/badcache.c                           C       2014,2015,2016
-./lib/dns/byaddr.c                             C       2000,2001,2002,2003,2004,2005,2007,2009,2013,2016,2017
+./lib/dns/byaddr.c                             C       2000,2001,2002,2003,2004,2005,2007,2009,2013,2016,2017,2018
 ./lib/dns/cache.c                              C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016,2017
 ./lib/dns/callbacks.c                          C       1999,2000,2001,2004,2005,2007,2011,2012,2015,2016
 ./lib/dns/catz.c                               C       2016,2017,2018