]> 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:54:19 +0000 (10:54 +1100)
(cherry picked from commit 70d192eb97b532c3a06529324e48cf3ea5f55e22)
(cherry picked from commit 06b7a4397ae113078a13d907cdb9bf2f7a1acd7a)

lib/dns/zone.c

index c09b3702d93ef76c21622c953beacb8014b085b2..f141dc0a5b49d4ae6816678f852344097d8f3b54 100644 (file)
@@ -17815,7 +17815,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);
 
@@ -17825,7 +17825,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);