diff options
author | 2004-06-15 03:52:58 +0000 | |
---|---|---|
committer | 2004-06-15 03:52:58 +0000 | |
commit | 551fad64171f4c0c38eba073dc73cb3cc9cf46b8 (patch) | |
tree | ebc47c49693664cd80f37896ae72efdfbb6f0868 /lib/libkvm/kvm_hppa.c | |
parent | Remove obsolete ioctls. ok beck@ dhartmei@ henning@ (diff) | |
download | wireguard-openbsd-551fad64171f4c0c38eba073dc73cb3cc9cf46b8.tar.xz wireguard-openbsd-551fad64171f4c0c38eba073dc73cb3cc9cf46b8.zip |
knf; ok millert
Diffstat (limited to 'lib/libkvm/kvm_hppa.c')
-rw-r--r-- | lib/libkvm/kvm_hppa.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/lib/libkvm/kvm_hppa.c b/lib/libkvm/kvm_hppa.c index f1a3497ff07..a4a45d9869b 100644 --- a/lib/libkvm/kvm_hppa.c +++ b/lib/libkvm/kvm_hppa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_hppa.c,v 1.2 2003/06/02 16:16:23 miod Exp $ */ +/* $OpenBSD: kvm_hppa.c,v 1.3 2004/06/15 03:52:59 deraadt Exp $ */ /* * Copyright (c) 2002, Miodrag Vallat. @@ -35,31 +35,28 @@ #include "kvm_private.h" void -_kvm_freevtop(kd) - kvm_t *kd; +_kvm_freevtop(kvm_t *kd) { - if (kd->vmst != 0) + if (kd->vmst != NULL) { free(kd->vmst); + kd->vmst = NULL; + } } int -_kvm_initvtop(kd) - kvm_t *kd; +_kvm_initvtop(kvm_t *kd) { return (0); } 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) { int offset; if (ISALIVE(kd)) { _kvm_err(kd, 0, "vatop called in live kernel!"); - return 0; + return (0); } /* TODO */ @@ -70,9 +67,7 @@ _kvm_kvatop(kd, va, pa) * 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) { /* TODO */ return (0); |