summaryrefslogtreecommitdiff
path: root/quot.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-08-04 22:58:01 +0000
committerjkar8572 <jkar8572>2001-08-04 22:58:01 +0000
commit566c2b5d75a399269596d925d9c4c8050a4fe055 (patch)
tree811f5950ecd0120206e184362d4b786a7fce13b5 /quot.c
parent91a9eacd0e6ceb1a408ad342e23fdcf665816337 (diff)
Applied ia64 fix from Nathan.
Diffstat (limited to 'quot.c')
-rw-r--r--quot.c16
1 files changed, 11 insertions, 5 deletions
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');
}
}