%qd -> %lld + (long long) for off_t's.
authorkrw <krw@openbsd.org>
Sun, 14 Aug 2016 20:53:19 +0000 (20:53 +0000)
committerkrw <krw@openbsd.org>
Sun, 14 Aug 2016 20:53:19 +0000 (20:53 +0000)
ok guenther@ natano@

usr.sbin/mtree/compare.c
usr.sbin/mtree/create.c

index 0a624e2..aff4fa8 100644 (file)
@@ -1,5 +1,5 @@
 /*     $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $     */
-/*     $OpenBSD: compare.c,v 1.25 2015/12/21 19:37:21 mmcc Exp $       */
+/*     $OpenBSD: compare.c,v 1.26 2016/08/14 20:53:19 krw Exp $        */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -182,8 +182,9 @@ typeerr:            LABEL;
        }
        if (s->flags & F_SIZE && s->st_size != p->fts_statp->st_size) {
                LABEL;
-               (void)printf("%ssize (%qd, %qd)\n",
-                   tab, s->st_size, p->fts_statp->st_size);
+               (void)printf("%ssize (%lld, %lld)\n",
+                   tab, (long long)s->st_size,
+                   (long long)p->fts_statp->st_size);
                tab = "\t";
        }
        /*
index eac1297..b0b280a 100644 (file)
@@ -1,5 +1,5 @@
 /*     $NetBSD: create.c,v 1.11 1996/09/05 09:24:19 mycroft Exp $      */
-/*     $OpenBSD: create.c,v 1.30 2015/01/16 06:40:18 deraadt Exp $     */
+/*     $OpenBSD: create.c,v 1.31 2016/08/14 20:53:19 krw Exp $ */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -185,7 +185,8 @@ statf(int indent, FTSENT *p)
        if (keys & F_NLINK && p->fts_statp->st_nlink != 1)
                output(indent, &offset, "nlink=%u", p->fts_statp->st_nlink);
        if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode))
-               output(indent, &offset, "size=%qd", p->fts_statp->st_size);
+               output(indent, &offset, "size=%lld",
+                   (long long)p->fts_statp->st_size);
        if (keys & F_TIME)
                output(indent, &offset, "time=%lld.%ld",
                    (long long)p->fts_statp->st_mtimespec.tv_sec,