]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
update the sscanf format strings so they match the pointer types
authorMark Andrews <marka@isc.org>
Tue, 20 Feb 2018 01:54:55 +0000 (12:54 +1100)
committerEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 01:50:27 +0000 (17:50 -0800)
lib/dns/zone.c

index e1375b4dbe98fcdf74d661f7ee1794c2839573a3..a74afcaf5322ef366359c0e640484c9d3fe637ef 100644 (file)
@@ -18682,7 +18682,7 @@ dns_zone_keydone(dns_zone_t *zone, const char *keystr) {
 
                kd->all = ISC_FALSE;
 
-               n = sscanf(keystr, "%hd/", &keyid);
+               n = sscanf(keystr, "%hu/", &keyid);
                if (n == 0U)
                        CHECK(ISC_R_FAILURE);
 
@@ -18692,7 +18692,7 @@ dns_zone_keydone(dns_zone_t *zone, const char *keystr) {
                else
                        CHECK(ISC_R_FAILURE);
 
-               n = sscanf(algstr, "%hhd", &alg);
+               n = sscanf(algstr, "%hhu", &alg);
                if (n == 0U) {
                        DE_CONST(algstr, r.base);
                        r.length = strlen(algstr);