[openssh-commits] [openssh] 01/01: upstream: fix format string (use %llu for uint64, not %lld). spotted by
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Apr 3 15:45:17 AEDT 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit de34a440276ae855c38deb20f926d46752c62c9d
Author: djm at openbsd.org <djm at openbsd.org>
Date: Fri Apr 3 04:43:24 2020 +0000
upstream: fix format string (use %llu for uint64, not %lld). spotted by
Darren and his tinderbox tests
OpenBSD-Commit-ID: 3b4587c3d9d46a7be9bdf028704201943fba96c2
---
krl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/krl.c b/krl.c
index 9da7126e..c8505c83 100644
--- a/krl.c
+++ b/krl.c
@@ -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);
}
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list