[openssh-commits] [openssh] 01/01: upstream: avoid another compiler warning spotted in -portable

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Apr 3 16:53:57 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 338ccee1e7fefa47f3d128c2541e94c5270abe0c
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Fri Apr 3 05:48:57 2020 +0000

    upstream: avoid another compiler warning spotted in -portable
    
    OpenBSD-Commit-ID: 1d29c51ac844b287c4c8bcaf04c63c7d9ba3b8c7
---
 krl.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/krl.c b/krl.c
index c8505c83..c431f704 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.49 2020/04/03 04:43:24 djm Exp $ */
+/* $OpenBSD: krl.c,v 1.50 2020/04/03 05:48:57 djm Exp $ */
 
 #include "includes.h"
 
@@ -1370,7 +1370,8 @@ 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 %llu\n", krl->krl_version);
+	fprintf(f, "# KRL version %llu\n",
+	    (unsigned long long)krl->krl_version);
 	fprintf(f, "# Generated at %s\n", timestamp);
 	if (krl->comment != NULL && *krl->comment != '\0') {
 		r = INT_MAX;
@@ -1427,11 +1428,13 @@ krl_dump(struct ssh_krl *krl, FILE *f)
 			free(fp);
 		}
 		RB_FOREACH(rs, revoked_serial_tree, &rc->revoked_serials) {
-			if (rs->lo == rs->hi)
-				fprintf(f, "serial: %llu\n", rs->lo);
-			else {
+			if (rs->lo == rs->hi) {
+				fprintf(f, "serial: %llu\n",
+				    (unsigned long long)rs->lo);
+			} else {
 				fprintf(f, "serial: %llu-%llu\n",
-				    rs->lo, rs->hi);
+				    (unsigned long long)rs->lo,
+				    (unsigned long long)rs->hi);
 			}
 		}
 		RB_FOREACH(rki, revoked_key_id_tree, &rc->revoked_key_ids) {

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list