summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-11-29 21:37:18 +0000
committerphk <phk@FreeBSD.org>1999-11-29 21:37:18 +0000
commit9809b71a89596df0e6c511a25a2219593178436c (patch)
tree0ec9a12c6c37f65171287cd140b061b9180e48cd /lib/libkvm
parent2936ce7135176370f1f316ab54ffa44611c10218 (diff)
downloadFreeBSD-src-9809b71a89596df0e6c511a25a2219593178436c.zip
FreeBSD-src-9809b71a89596df0e6c511a25a2219593178436c.tar.gz
Report swapdevices as cdevs rather than bdevs.
Remove unused dev2budev() function.
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_getswapinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_getswapinfo.c b/lib/libkvm/kvm_getswapinfo.c
index 535a9d0..05aeedf 100644
--- a/lib/libkvm/kvm_getswapinfo.c
+++ b/lib/libkvm/kvm_getswapinfo.c
@@ -191,7 +191,7 @@ kvm_getswapinfo(
sizeof(swap_ary[i].ksw_devname),
"%s%s",
((flags & SWIF_DEV_PREFIX) ? "/dev/" : ""),
- devname(swinfo.sw_dev, S_IFBLK)
+ devname(swinfo.sw_dev, S_IFCHR)
);
}
}
OpenPOWER on IntegriCloud