From c4b08ff306767dda0c1e1dd9ad62f27d3c420cbc Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 22 Jan 2002 10:07:03 +0000 Subject: Finish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile) argument to kvm_open() and kvm_openfiles() as unused. BSD didn't read swap since kvm.c CSRG revision 5.21 (u-area is pageable under new VM. no need to read from swap.) The old !NEWVM code was removed in CSRG revision 5.23 (~ten years ago). --- lib/libkvm/kvm.c | 4 ++-- lib/libkvm/kvm_open.3 | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index 8ce148e..32ff245 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -253,7 +253,7 @@ kvm_t * kvm_openfiles(uf, mf, sf, flag, errout) const char *uf; const char *mf; - const char *sf; + const char *sf __unused; int flag; char *errout; { @@ -272,7 +272,7 @@ kvm_t * kvm_open(uf, mf, sf, flag, errstr) const char *uf; const char *mf; - const char *sf; + const char *sf __unused; int flag; const char *errstr; { diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3 index 04990b4..c037850 100644 --- a/lib/libkvm/kvm_open.3 +++ b/lib/libkvm/kvm_open.3 @@ -87,11 +87,9 @@ the default indicated by .Dv _PATH_MEM from is used. .Pp +The .Fa swapfile -should indicate the swap device. If -.Dv NULL , -.Dv _PATH_DRUM -from is used. +argument is currently unused. .Pp The .Fa flags -- cgit v1.1