]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
prevent implict conversion to signed
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2018 09:32:51 +0000 (20:32 +1100)
committerMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 23:20:38 +0000 (10:20 +1100)
lib/dns/message.c
util/copyrights

index 541fafd056983d57ef8ed9914fde57d811ee4379..95d9382947d75cac43e6339970e47acddcbbe4bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1999-2017  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1999-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
@@ -3862,11 +3862,11 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
                                ADD_STRING(target, "; EXPIRE");
                        } else if (optcode == DNS_OPT_TCP_KEEPALIVE) {
                                if (optlen == 2) {
-                                       isc_uint16_t dsecs;
+                                       unsigned int dsecs;
                                        dsecs = isc_buffer_getuint16(&optbuf);
                                        ADD_STRING(target, "; TCP KEEPALIVE:");
                                        snprintf(buf, sizeof(buf), " %u.%u",
-                                                dsecs / 10, dsecs % 10);
+                                                dsecs / 10U, dsecs % 10U);
                                        ADD_STRING(target, buf);
                                        ADD_STRING(target, " secs\n");
                                        continue;
index a2b9f3c4679122b9ffa3310fd2a51d21c7976ece..6173b1f1baf6b1e8002ae51c92b9d5894366744a 100644 (file)
 ./lib/dns/mapapi                               X       2013,2017
 ./lib/dns/master.c                             C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016,2017,2018
 ./lib/dns/masterdump.c                         C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016,2017,2018
-./lib/dns/message.c                            C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017
+./lib/dns/message.c                            C       1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
 ./lib/dns/name.c                               C       1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017
 ./lib/dns/ncache.c                             C       1999,2000,2001,2002,2003,2004,2005,2007,2008,2010,2011,2012,2013,2014,2015,2016,2017
 ./lib/dns/nsec.c                               C       1999,2000,2001,2003,2004,2005,2007,2008,2009,2011,2012,2013,2014,2015,2016