diff options
author | Greg Farnum <greg@inktank.com> | 2013-04-26 12:37:03 -0700 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-04-26 12:37:03 -0700 |
commit | ebbdef29fa1d4e7f466ab3aa7197e851320fd6b4 (patch) | |
tree | 1616d6d7feffd85d44bde3cc238b4ba5798cd411 | |
parent | 5fa3cbf520f5aeb9e0101c1263f681542d3069a5 (diff) | |
download | ceph-ebbdef29fa1d4e7f466ab3aa7197e851320fd6b4.tar.gz |
monitor: squash signed/unsigned comparison warning
This is a safe range to do comparisons against, and we compare
against the signed rank inside the loop.
Signed-off-by: Greg Farnum <greg@inktank.com>
-rw-r--r-- | src/mon/Monitor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 787a804db0c..0b4a44f1649 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1107,7 +1107,7 @@ void Monitor::sync_timeout(entity_inst_t &entity) } // well that sucks. Let's see if we can find a monitor to connect to - for (int i = 0; i < monmap->size(); ++i) { + for (int i = 0; i < (int)monmap->size(); ++i) { entity_inst_t i_inst = monmap->get_inst(i); if (i != rank && i_inst != entity) { sync_provider->entity = i_inst; |