Update to use current version of devstat API.

This commit is contained in:
Poul-Henning Kamp 2003-03-15 20:49:38 +00:00
parent 15eccea260
commit 26c4bf80c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112282
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}