Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/gzip Fix printf conversion of off_t for 32 bit hosts...



details:   https://anonhg.NetBSD.org/src/rev/00341fc7aa22
branches:  trunk
changeset: 445402:00341fc7aa22
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Oct 27 11:52:26 2018 +0000

description:
Fix printf conversion of off_t for 32 bit hosts (fix i386 build)
(%td is for ptrdiff_t)

diffstat:

 usr.bin/gzip/unlz.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3ce8ddbe662d -r 00341fc7aa22 usr.bin/gzip/unlz.c
--- a/usr.bin/gzip/unlz.c       Sat Oct 27 11:39:12 2018 +0000
+++ b/usr.bin/gzip/unlz.c       Sat Oct 27 11:52:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unlz.c,v 1.1 2018/10/26 22:10:15 christos Exp $        */
+/*     $NetBSD: unlz.c,v 1.2 2018/10/27 11:52:26 kre Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -577,7 +577,7 @@
 #else
        rv = ftello(lz.fout);
 #endif
-       fprintf(stderr, "%td\n", rv);
+       fprintf(stderr, "%jd\n", (intmax_t)rv);
 out:
        lz_destroy(&lz);
        return rv;



Home | Main Index | Thread Index | Old Index