From 9e74ac9de461efbe0f23a281d73f24b272af2200 Mon Sep 17 00:00:00 2001 From: Jeroen Ruigrok van der Werven Date: Mon, 8 Apr 2002 21:06:14 +0000 Subject: Cast totreq to unsigned long long, as needed on 64-bit machines. Pointed out by: jeff --- usr.bin/vmstat/vmstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 1a15b75ca7e2..cc312c618404 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -813,7 +813,8 @@ domem() } (void)printf("\nMemory Totals: In Use Free Requests\n"); (void)printf(" %7ldK %6ldK %20llu\n", - (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq); + (totuse + 1023) / 1024, + (totfree + 1023) / 1024, (unsigned long long)totreq); } void -- cgit v1.3