From 566c2b5d75a399269596d925d9c4c8050a4fe055 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Sat, 4 Aug 2001 22:58:01 +0000 Subject: Applied ia64 fix from Nathan. --- quot.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'quot.c') diff --git a/quot.c b/quot.c index bd06ac1..e8291d5 100644 --- a/quot.c +++ b/quot.c @@ -191,9 +191,13 @@ static void creport(const char *file, char *fsdir) for (i = 0; i < TSIZE - 1; i++) if (sizes[i] > 0) { t += sizes[i] * i; - printf(_("%d\t%llu\t%llu\n"), i, sizes[i], t); + printf(_("%d\t%llu\t%llu\n"), i, + (unsigned long long) sizes[i], + (unsigned long long) t); } - printf(_("%d\t%llu\t%llu\n"), TSIZE - 1, sizes[TSIZE - 1], overflow + t); + printf(_("%d\t%llu\t%llu\n"), TSIZE - 1, + (unsigned long long) sizes[TSIZE - 1], + (unsigned long long) (overflow + t)); } static void report(const char *file, char *fsdir, int type) @@ -207,16 +211,18 @@ static void report(const char *file, char *fsdir, int type) if (dp->blocks == 0) return; - printf(_("%8llu "), dp->blocks); + printf(_("%8llu "), (unsigned long long) dp->blocks); if (fflag) - printf(_("%8llu "), dp->nfiles); + printf(_("%8llu "), (unsigned long long) dp->nfiles); if ((cp = idname(dp->id, type)) != NULL) printf(_("%-8.8s"), cp); else printf(_("#%-7d"), dp->id); if (vflag) printf(_(" %8llu %8llu %8llu"), - dp->blocks30, dp->blocks60, dp->blocks90); + (unsigned long long) dp->blocks30, + (unsigned long long) dp->blocks60, + (unsigned long long) dp->blocks90); putchar('\n'); } } -- cgit v1.2.3