From fe42e96eff777b0d56eae100f3a68abf0c9d1432 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 22 Jan 2002 10:07:03 +0000 Subject: [PATCH] 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 8ce148eb019f..32ff245c1499 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 04990b4e9ded..c0378504f640 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