diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-04-08 14:40:18 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-04-08 14:40:18 +0000 |
commit | a1eba521e3cd652a8e72e662866e593d6f949fc2 (patch) | |
tree | 6d005ee70436569d0f2e559ec180a02d9d414ddd /lib/metadata/mirror.c | |
parent | 2c5827076b3dc43df52ef9f8150e00eb4d3de1f0 (diff) | |
download | lvm2-a1eba521e3cd652a8e72e662866e593d6f949fc2.tar.gz lvm2-a1eba521e3cd652a8e72e662866e593d6f949fc2.tar.xz lvm2-a1eba521e3cd652a8e72e662866e593d6f949fc2.zip |
Fix some unmatching sign comparation gcc warnings
Simple replacement for unsigned type - usually in for() loops.
Diffstat (limited to 'lib/metadata/mirror.c')
-rw-r--r-- | lib/metadata/mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/mirror.c b/lib/metadata/mirror.c index 9a4797da..e4aa808c 100644 --- a/lib/metadata/mirror.c +++ b/lib/metadata/mirror.c @@ -200,7 +200,7 @@ uint32_t adjusted_mirror_region_size(uint32_t extent_size, uint32_t extents, */ int shift_mirror_images(struct lv_segment *mirrored_seg, unsigned mimage) { - int i; + unsigned i; struct lv_segment_area area; if (mimage >= mirrored_seg->area_count) { @@ -1836,7 +1836,7 @@ int add_mirror_log(struct cmd_context *cmd, struct logical_volume *lv, int in_sync; struct logical_volume *log_lv; struct lvinfo info; - int old_log_count; + unsigned old_log_count; int r = 0; if (dm_list_size(&lv->segments) != 1) { |