Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libkvm ANSIfy / KNF.
details: https://anonhg.NetBSD.org/src/rev/da571b810245
branches: trunk
changeset: 755844:da571b810245
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Jun 24 20:42:24 2010 +0000
description:
ANSIfy / KNF.
diffstat:
lib/libkvm/kvm_hppa.c | 30 +++++++++++-------------------
1 files changed, 11 insertions(+), 19 deletions(-)
diffs (97 lines):
diff -r 3388b91b0a45 -r da571b810245 lib/libkvm/kvm_hppa.c
--- a/lib/libkvm/kvm_hppa.c Thu Jun 24 17:20:19 2010 +0000
+++ b/lib/libkvm/kvm_hppa.c Thu Jun 24 20:42:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm_hppa.c,v 1.3 2008/01/15 13:57:42 ad Exp $ */
+/* $NetBSD: kvm_hppa.c,v 1.4 2010/06/24 20:42:24 skrll Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: kvm_hppa.c,v 1.3 2008/01/15 13:57:42 ad Exp $");
+__RCSID("$NetBSD: kvm_hppa.c,v 1.4 2010/06/24 20:42:24 skrll Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -76,8 +76,7 @@
#endif
void
-_kvm_freevtop(kd)
- kvm_t *kd;
+_kvm_freevtop(kvm_t *kd)
{
/* Not actually used for anything right now, but safe. */
@@ -87,21 +86,17 @@
/*ARGSUSED*/
int
-_kvm_initvtop(kd)
- kvm_t *kd;
+_kvm_initvtop(kvm_t *kd)
{
- return (0);
+ return 0;
}
/*
* Translate a kernel virtual address to a physical address.
*/
int
-_kvm_kvatop(kd, va, pa)
- kvm_t *kd;
- u_long va;
- u_long *pa;
+_kvm_kvatop(kvm_t *kd, u_long va, u_long *pa)
{
#if 0
cpu_kcore_hdr_t *cpu_kh;
@@ -159,16 +154,14 @@
lose:
#endif
*pa = (u_long)~0L;
- return (0);
+ return 0;
}
/*
* Translate a physical address to a file-offset in the crash dump.
*/
off_t
-_kvm_pa2off(kd, pa)
- kvm_t *kd;
- u_long pa;
+_kvm_pa2off(kvm_t *kd, u_long pa)
{
#if 0
cpu_kcore_hdr_t *cpu_kh;
@@ -189,7 +182,7 @@
off += ramsegs[i].size;
}
- return (kd->dump_off + off);
+ return kd->dump_off + off;
#endif
return 0;
}
@@ -200,13 +193,12 @@
* have to deal with these NOT being constants! (i.e. m68k)
*/
int
-_kvm_mdopen(kd)
- kvm_t *kd;
+_kvm_mdopen(kvm_t *kd)
{
kd->usrstack = USRSTACK;
kd->min_uva = VM_MIN_ADDRESS;
kd->max_uva = VM_MAXUSER_ADDRESS;
- return (0);
+ return 0;
}
Home |
Main Index |
Thread Index |
Old Index