Source-Changes-HG archive

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

[src/trunk]: src/sbin make this build on alpha after daddr_t->64bit



details:   https://anonhg.NetBSD.org/src/rev/f0bb90c7ed81
branches:  trunk
changeset: 542414:f0bb90c7ed81
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jan 28 05:17:12 2003 +0000

description:
make this build on alpha after daddr_t->64bit

diffstat:

 sbin/fsck_ffs/main.c |  12 ++++++------
 sbin/fsck_lfs/main.c |   4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (53 lines):

diff -r a31187b2443d -r f0bb90c7ed81 sbin/fsck_ffs/main.c
--- a/sbin/fsck_ffs/main.c      Tue Jan 28 02:20:35 2003 +0000
+++ b/sbin/fsck_ffs/main.c      Tue Jan 28 05:17:12 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.43 2003/01/24 21:55:08 fvdl Exp $   */
+/*     $NetBSD: main.c,v 1.44 2003/01/28 05:17:12 mrg Exp $    */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 5/14/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.43 2003/01/24 21:55:08 fvdl Exp $");
+__RCSID("$NetBSD: main.c,v 1.44 2003/01/28 05:17:12 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -291,12 +291,12 @@
        n_bfree = sblock->fs_cstotal.cs_nbfree;
        pwarn("%d files, %lld used, %lld free ",
            n_files, (long long)n_blks,
-           (long long)n_ffree + sblock->fs_frag * n_bfree);
+           (long long)(n_ffree + sblock->fs_frag * n_bfree));
        printf("(%lld frags, %lld blocks, %lld.%lld%% fragmentation)\n",
            (long long)n_ffree, (long long)n_bfree,
-           (long long)(n_ffree * 100) / (daddr_t)sblock->fs_dsize,
-           (long long)((n_ffree * 1000 + (daddr_t)sblock->fs_dsize / 2)
-               / (daddr_t)sblock->fs_dsize) % 10);
+           (long long)(n_ffree * 100 / (daddr_t)sblock->fs_dsize),
+           (long long)(((n_ffree * 1000 + (daddr_t)sblock->fs_dsize / 2)
+               / (daddr_t)sblock->fs_dsize) % 10));
        if (debug &&
            (n_files -= maxino - ROOTINO - sblock->fs_cstotal.cs_nifree))
                printf("%d files missing\n", n_files);
diff -r a31187b2443d -r f0bb90c7ed81 sbin/fsck_lfs/main.c
--- a/sbin/fsck_lfs/main.c      Tue Jan 28 02:20:35 2003 +0000
+++ b/sbin/fsck_lfs/main.c      Tue Jan 28 05:17:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.11 2003/01/24 21:55:10 fvdl Exp $        */
+/* $NetBSD: main.c,v 1.12 2003/01/28 05:17:13 mrg Exp $         */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -259,7 +259,7 @@
                 */
                pwarn("%d files, %lld used, %lld free ",
                      n_files, (long long)n_blks,
-                     (long long)n_ffree + sblock.lfs_frag * n_bfree);
+                     (long long)(n_ffree + sblock.lfs_frag * n_bfree));
                putchar('\n');
        }
        if (debug) {



Home | Main Index | Thread Index | Old Index