From c960d1da4ab122d9542c5b70d65f1d4436ca59f2 Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 6 Oct 1999 07:20:20 +0000 Subject: [PATCH] Adjust this to work on the Alpha. --- usr.sbin/quot/quot.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index cec60f746e78..b1b11b9cef7d 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -1,4 +1,4 @@ -/* $NetBSD: quot.c,v 1.15 1999/10/05 03:14:28 mycroft Exp $ */ +/* $NetBSD: quot.c,v 1.16 1999/10/06 07:20:20 mycroft Exp $ */ /* * Copyright (C) 1991, 1994 Wolfgang Solfrank. @@ -33,7 +33,7 @@ #include #ifndef lint -__RCSID("$NetBSD: quot.c,v 1.15 1999/10/05 03:14:28 mycroft Exp $"); +__RCSID("$NetBSD: quot.c,v 1.16 1999/10/06 07:20:20 mycroft Exp $"); #endif /* not lint */ #include @@ -70,9 +70,9 @@ static int headerlen; * kByte when done (on request). */ #ifdef COMPAT -#define SIZE(n) (n) +#define SIZE(n) ((long long)(n)) #else -#define SIZE(n) howmany((quad_t)(n) * DEV_BSIZE, blocksize) +#define SIZE(n) howmany((long long)(n) * DEV_BSIZE, (long long)blocksize) #endif #define INOCNT(fs) ((fs)->fs_ipg) @@ -405,7 +405,7 @@ dofsizes(fd, super, name) for (fp = fsizes; fp; fp = fp->fsz_next) { for (i = 0; i < FSZCNT; i++) { if (fp->fsz_count[i]) - printf("%ld\t%ld\t%qd\n", + printf("%ld\t%ld\t%lld\n", (long)(fp->fsz_first + i), (long)fp->fsz_count[i], SIZE(sz += fp->fsz_sz[i])); @@ -439,12 +439,12 @@ douser(fd, super, name) memmove(usrs, users, nusers * sizeof(struct user)); sortusers(usrs); for (usr = usrs, n = nusers; --n >= 0 && usr->count; usr++) { - printf("%5qd", SIZE(usr->space)); + printf("%5lld", SIZE(usr->space)); if (count) printf("\t%5ld", usr->count); printf("\t%-8s", usr->name); if (unused) - printf("\t%5qd\t%5qd\t%5qd", + printf("\t%5lld\t%5lld\t%5lld", SIZE(usr->spc30), SIZE(usr->spc60), SIZE(usr->spc90)); printf("\n");