diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-04-03 06:43:24 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-04-03 06:45:12 +0200 |
commit | de34a440276ae855c38deb20f926d46752c62c9d (patch) | |
tree | f979d323deb0cad191d6be828991606031905d00 /krl.c | |
parent | upstream: Add a flag to re-enable verbose output when in batch (diff) | |
download | openssh-de34a440276ae855c38deb20f926d46752c62c9d.tar.xz openssh-de34a440276ae855c38deb20f926d46752c62c9d.zip |
upstream: fix format string (use %llu for uint64, not %lld). spotted by
Darren and his tinderbox tests
OpenBSD-Commit-ID: 3b4587c3d9d46a7be9bdf028704201943fba96c2
Diffstat (limited to 'krl.c')
-rw-r--r-- | krl.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.48 2020/04/03 02:26:56 djm Exp $ */ +/* $OpenBSD: krl.c,v 1.49 2020/04/03 04:43:24 djm Exp $ */ #include "includes.h" @@ -1370,7 +1370,7 @@ krl_dump(struct ssh_krl *krl, FILE *f) /* Try to print in a KRL spec-compatible format */ format_timestamp(krl->generated_date, timestamp, sizeof(timestamp)); - fprintf(f, "# KRL version %lld\n", krl->krl_version); + fprintf(f, "# KRL version %llu\n", krl->krl_version); fprintf(f, "# Generated at %s\n", timestamp); if (krl->comment != NULL && *krl->comment != '\0') { r = INT_MAX; @@ -1428,9 +1428,9 @@ krl_dump(struct ssh_krl *krl, FILE *f) } RB_FOREACH(rs, revoked_serial_tree, &rc->revoked_serials) { if (rs->lo == rs->hi) - fprintf(f, "serial: %lld\n", rs->lo); + fprintf(f, "serial: %llu\n", rs->lo); else { - fprintf(f, "serial: %lld-%lld\n", + fprintf(f, "serial: %llu-%llu\n", rs->lo, rs->hi); } } |