From 980cf7959c6c05b1135749148d73cc2d55a8aa1e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 23 Feb 2012 22:36:56 +0000 Subject: [PATCH] Keep same sign for 's' counter --- tools/lvconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 79b664636..3ce739366 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -596,7 +596,8 @@ static int _failed_mirrors_count(struct logical_volume *lv) static int _failed_logs_count(struct logical_volume *lv) { - int ret = 0, s; + int ret = 0; + unsigned s; struct logical_volume *log_lv = first_seg(lv)->log_lv; if (log_lv && (log_lv->status & PARTIAL_LV)) { if (log_lv->status & MIRRORED)