summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2002-04-08 21:06:14 +0000
committerasmodai <asmodai@FreeBSD.org>2002-04-08 21:06:14 +0000
commit1c2992c7a6b2a9aa51877d8239bcd4b4a15da914 (patch)
tree308dfec5077d1f5e25ff2a2191ce70c2279e1ce8 /usr.bin
parent2f151668557ad939f690dab75fc2edd4a2334f35 (diff)
downloadFreeBSD-src-1c2992c7a6b2a9aa51877d8239bcd4b4a15da914.zip
FreeBSD-src-1c2992c7a6b2a9aa51877d8239bcd4b4a15da914.tar.gz
Cast totreq to unsigned long long, as needed on 64-bit machines.
Pointed out by: jeff
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vmstat/vmstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 1a15b75..cc312c6 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
OpenPOWER on IntegriCloud