diff options
author | Joe Thornber <thornber@redhat.com> | 2001-10-31 12:47:01 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2001-10-31 12:47:01 +0000 |
commit | 1b9fcf48b1132fa382820c55048d13b5d83621b9 (patch) | |
tree | c75de9a39b6867409f1b454d602380b5549e9f25 /tools/vgremove.c | |
parent | b892f8ecb64d60667dbb679867f885d72e537e1a (diff) | |
download | lvm2-1b9fcf48b1132fa382820c55048d13b5d83621b9.tar.gz lvm2-1b9fcf48b1132fa382820c55048d13b5d83621b9.tar.xz lvm2-1b9fcf48b1132fa382820c55048d13b5d83621b9.zip |
o LGPL list implementation
Diffstat (limited to 'tools/vgremove.c')
-rw-r--r-- | tools/vgremove.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/vgremove.c b/tools/vgremove.c index 1a20d507..eec50db7 100644 --- a/tools/vgremove.c +++ b/tools/vgremove.c @@ -31,7 +31,7 @@ static int vgremove_single(const char *vg_name) { struct volume_group *vg; struct physical_volume *pv; - struct list_head *pvh; + struct list *pvh; int ret = 0; log_verbose("Checking for volume group %s", vg_name); @@ -59,8 +59,8 @@ static int vgremove_single(const char *vg_name) *************/ /* init physical volumes */ - list_for_each(pvh, &vg->pvs) { - pv = &list_entry(pvh, struct pv_list, list)->pv; + list_iterate(pvh, &vg->pvs) { + pv = &list_item(pvh, struct pv_list)->pv; log_verbose("Removing physical volume %s from volume group %s", dev_name(pv->dev), vg_name); *pv->vg_name = '\0'; |