From 7d1a933bd28383e0c47861ca71f1a75a6d413661 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 15 Mar 2003 20:49:38 +0000 Subject: Update to use current version of devstat API. --- sbin/vinum/commands.c | 4 ++-- sbin/vinum/list.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 2adb5cb..8510870 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -516,7 +516,7 @@ vinum_start(int argc, char *argv[], char *arg0[]) struct vinum_ioctl_msg *message = (struct vinum_ioctl_msg *) &reply; if (argc == 0) { /* start everything */ - int devs = getnumdevs(); + int devs = devstat_getnumdevs(NULL); struct statinfo statinfo; char *namelist; char *enamelist; /* end of name list */ @@ -535,7 +535,7 @@ vinum_start(int argc, char *argv[], char *arg0[]) bzero(statinfo.dinfo, sizeof(struct devinfo)); tokens = 0; /* no tokens yet */ - if (getdevs(&statinfo) < 0) { /* find out what devices we have */ + if (devstat_getdevs(NULL, &statinfo) < 0) { /* find out what devices we have */ perror("Can't get device list"); return; } diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index 0a86c56..af27723 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -1215,7 +1215,7 @@ vinum_dumpconfig(int argc, char *argv[], char *argv0[]) int i; if (argc == 0) { /* start everything */ - int devs = getnumdevs(); + int devs = devstat_getnumdevs(NULL); struct statinfo statinfo; char *namelist; char *enamelist; /* end of name list */ @@ -1234,7 +1234,7 @@ vinum_dumpconfig(int argc, char *argv[], char *argv0[]) bzero(statinfo.dinfo, sizeof(struct devinfo)); tokens = 0; /* no tokens yet */ - if (getdevs(&statinfo) < 0) { /* find out what devices we have */ + if (devstat_getdevs(NULL, &statinfo) < 0) { /* find out what devices we have */ perror("Can't get device list"); return; } -- cgit v1.1