summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_m68k.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-09-15 19:31:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-09-15 19:31:32 +0000
commit2fb572f231b975f0a7c26e66c718f4c9ed2c2aa7 (patch)
tree0f28799465d475ff821fbbca8dd5616c67475094 /lib/libkvm/kvm_m68k.c
parent3d0c3a81e5316a892e584ab674ac0aa7b45a24eb (diff)
Kill (almost all) warnings.
Diffstat (limited to 'lib/libkvm/kvm_m68k.c')
-rw-r--r--lib/libkvm/kvm_m68k.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_m68k.c b/lib/libkvm/kvm_m68k.c
index 30a687fb59a..4f9ab56c382 100644
--- a/lib/libkvm/kvm_m68k.c
+++ b/lib/libkvm/kvm_m68k.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_m68k.c,v 1.14 2004/07/03 19:57:37 miod Exp $ */
+/* $OpenBSD: kvm_m68k.c,v 1.15 2004/09/15 19:31:31 miod Exp $ */
/* $NetBSD: kvm_m68k.c,v 1.9 1996/05/07 06:09:11 leo Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
#else
-static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.14 2004/07/03 19:57:37 miod Exp $";
+static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.15 2004/09/15 19:31:31 miod Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -57,6 +57,7 @@ static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.14 2004/07/03 19:57:37 miod Exp $
#include <sys/kcore.h>
#include <unistd.h>
+#include <stdlib.h>
#include <limits.h>
#include <nlist.h>
#include <kvm.h>
@@ -196,7 +197,7 @@ _kvm_kvatop(kvm_t *kd, u_long va, u_long *pa)
cpu_kcore_hdr_t *cpu_kh;
cpu_kh = kd->cpu_data;
- return (_kvm_vatop(kd, (u_long)cpu_kh->sysseg_pa, va, pa));
+ return (_kvm_vatop(kd, cpu_kh->sysseg_pa, va, pa));
}
/*