From: Mark Andrews Date: Tue, 20 Feb 2018 01:54:55 +0000 (+1100) Subject: update the sscanf format strings so they match the pointer types X-Git-Tag: v9.13.0~136^2~5 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=70d192eb97b532c3a06529324e48cf3ea5f55e22;p=thirdparty%2Fbind9.git update the sscanf format strings so they match the pointer types --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index e1375b4dbe9..a74afcaf532 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -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);