]> 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)
committerMark Andrews <marka@isc.org>
Sun, 25 Feb 2018 23:40:10 +0000 (10:40 +1100)
(cherry picked from commit 70d192eb97b532c3a06529324e48cf3ea5f55e22)

lib/dns/zone.c

index 0e95ebf1f515425430c2ba231850f81b467f635f..365721e28c4d44e4ffc4573f0ed14ca329a22810 100644 (file)
@@ -18652,7 +18652,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);
 
@@ -18662,7 +18662,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);