summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2008-02-18 16:31:55 +0000
committerkettenis <kettenis@openbsd.org>2008-02-18 16:31:55 +0000
commit715977c272a105b86fb333008ceaa5b039be36b5 (patch)
tree8106c3d588579b95dd5bbc4f3261a6b23e5c43e4
parent'like\nlike' -> 'like' in a couple of comments. (diff)
downloadwireguard-openbsd-715977c272a105b86fb333008ceaa5b039be36b5.tar.xz
wireguard-openbsd-715977c272a105b86fb333008ceaa5b039be36b5.zip
Fix ptoa() cast.
Sigh... ok miod@
-rw-r--r--sys/arch/i386/i386/machdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 09d832522dd..3510aacce03 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.417 2008/01/25 19:48:15 weingart Exp $ */
+/* $OpenBSD: machdep.c,v 1.418 2008/02/18 16:31:55 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -420,8 +420,9 @@ cpu_startup()
curcpu()->ci_feature_flags = cpu_feature;
identifycpu(curcpu());
- printf("real mem = %llu (%lluMB)\n", ptoa((unsigned long long)physmem),
- ptoa((unsigned long long)physmem)/1024U/1024U);
+ printf("real mem = %llu (%lluMB)\n",
+ (unsigned long long)ptoa((psize_t)physmem),
+ (unsigned long long)ptoa((psize_t)physmem)/1024U/1024U);
/*
* Find out how much space we need, allocate it,
@@ -454,8 +455,8 @@ cpu_startup()
VM_PHYS_SIZE, 0, FALSE, NULL);
printf("avail mem = %llu (%lluMB)\n",
- ptoa((unsigned long long)uvmexp.free),
- ptoa((unsigned long long)uvmexp.free)/1024U/1024U);
+ (unsigned long long)ptoa((psize_t)uvmexp.free),
+ (unsigned long long)ptoa((psize_t)uvmexp.free)/1024U/1024U);
/*
* Set up buffers, so they can be used to read disk labels.