make both arguments of & unsigned

This commit is contained in:
Mark Andrews 2018-02-15 12:08:52 +11:00
parent cc21083141
commit 5ae3eb3cfb
2 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005, 2007, 2009, 2013, 2017 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007, 2009, 2013, 2017, 2018 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@ -84,10 +84,10 @@ dns_byaddr_createptrname2(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;

View file

@ -2770,7 +2770,7 @@
./lib/dns/acl.c C 1999,2000,2001,2002,2004,2005,2006,2007,2008,2009,2011,2013,2014,2016
./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/byaddr.c C 2000,2001,2002,2003,2004,2005,2007,2009,2013,2017
./lib/dns/byaddr.c C 2000,2001,2002,2003,2004,2005,2007,2009,2013,2017,2018
./lib/dns/cache.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2011,2013,2015,2016
./lib/dns/callbacks.c C 1999,2000,2001,2004,2005,2007,2011,2015
./lib/dns/client.c C 2009,2010,2011,2012,2013,2015,2016,2017