]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
formally cast to int; use %u instead of %d
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2018 08:20:38 +0000 (19:20 +1100)
committerMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 23:20:38 +0000 (10:20 +1100)
lib/dns/adb.c

index 8db5c27a35961c5bd4922a38c79eb8ed73240c3c..b30f6951397541c1c9ec64aded7c91d95bf9c231 100644 (file)
@@ -3467,7 +3467,7 @@ dump_adb(dns_adb_t *adb, FILE *f, isc_boolean_t debug, isc_stdtime_t now) {
                if (name == NULL)
                        continue;
                if (debug)
-                       fprintf(f, "; bucket %d\n", i);
+                       fprintf(f, "; bucket %u\n", i);
                for (;
                     name != NULL;
                     name = ISC_LIST_NEXT(name, plink))
@@ -3554,7 +3554,7 @@ dump_entry(FILE *f, dns_adb_t *adb, dns_adbentry_t *entry,
                fprintf(f, "]");
        }
        if (entry->expires != 0)
-               fprintf(f, " [ttl %d]", entry->expires - now);
+               fprintf(f, " [ttl %d]", (int)(entry->expires - now));
 
        if (adb != NULL && adb->quota != 0 && adb->atr_freq != 0) {
                fprintf(f, " [atr %0.2f] [quota %u]",
@@ -3570,7 +3570,7 @@ dump_entry(FILE *f, dns_adb_t *adb, dns_adbentry_t *entry,
                print_dns_name(f, &li->qname);
                dns_rdatatype_format(li->qtype, typebuf, sizeof(typebuf));
                fprintf(f, " %s [lame TTL %d]\n", typebuf,
-                       li->lame_timer - now);
+                       (int)(li->lame_timer - now));
        }
 }