Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/pax pax: fix -Wformat for host tool



details:   https://anonhg.NetBSD.org/src/rev/928a930be65a
branches:  trunk
changeset: 378114:928a930be65a
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jul 20 20:10:59 2023 +0000

description:
pax: fix -Wformat for host tool

diffstat:

 bin/pax/ar_io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9e382608dc97 -r 928a930be65a bin/pax/ar_io.c
--- a/bin/pax/ar_io.c   Thu Jul 20 20:09:49 2023 +0000
+++ b/bin/pax/ar_io.c   Thu Jul 20 20:10:59 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ar_io.c,v 1.59 2019/02/04 04:36:41 mrg Exp $   */
+/*     $NetBSD: ar_io.c,v 1.60 2023/07/20 20:10:59 lukem Exp $ */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)ar_io.c    8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: ar_io.c,v 1.59 2019/02/04 04:36:41 mrg Exp $");
+__RCSID("$NetBSD: ar_io.c,v 1.60 2023/07/20 20:10:59 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -457,7 +457,7 @@ ar_close(void)
        /* mimic cpio's block count first */
        if (frmt && strcmp(NM_CPIO, argv0) == 0) {
                (void)fprintf(listf, OFFT_F " blocks\n",
-                   (rdcnt ? rdcnt : wrcnt) / 5120);
+                   (OFFT_T)((rdcnt ? rdcnt : wrcnt) / 5120));
        }
 
        ar_summary(0);



Home | Main Index | Thread Index | Old Index