]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Monitor.cc: fix -Wsign-compare 72/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Feb 2013 15:38:50 +0000 (16:38 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Feb 2013 15:38:50 +0000 (16:38 +0100)
Fix -Wsign-compare, make 'i' unsigned int.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/Monitor.cc

index d6b0565fd514430678a58fd7dcd7bd451f74398a..5cef7e2bbac635058be52ac9bb0a496eee371633 100644 (file)
@@ -1053,7 +1053,7 @@ void Monitor::sync_timeout(entity_inst_t &entity)
       return;
     }
 
-    int i = 0;
+    unsigned int i = 0;
     string entity_name = monmap->get_name(entity.addr);
     string debug_mon = g_conf->mon_sync_debug_provider;
     string debug_fallback = g_conf->mon_sync_debug_provider_fallback;