diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-05-09 21:23:51 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-05-09 21:23:51 +0000 |
commit | 45dca55fc8def2804617d58f66e85a7ad60649eb (patch) | |
tree | ae0130e37b873591370abd65ff44cb2a554db049 /tools/vgreduce.c | |
parent | 445d8ecd9f4afd4f055bc368c73d5ecd22944c4b (diff) | |
download | lvm2-45dca55fc8def2804617d58f66e85a7ad60649eb.tar.gz |
Make SIZE_SHORT the default for display_size().
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 0c535c81e..c0f70aaf5 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -157,7 +157,7 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg) struct physical_volume *pv; struct lv_segment *seg, *mirrored_seg; struct lv_segment_area area; - unsigned int s; + unsigned s; uint32_t mimages; int list_unsafe, only_mirror_images_found; LIST_INIT(lvs_changed); @@ -323,7 +323,8 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg) /* Or take pv_name instead? */ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg, - struct physical_volume *pv, void *handle) + struct physical_volume *pv, + void *handle __attribute((unused))) { struct pv_list *pvl; const char *name = dev_name(pv->dev); |