]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Convert ConnectionRef explicitly to bool.
authorMatt Benjamin <matt@linuxbox.com>
Thu, 29 May 2014 14:48:18 +0000 (10:48 -0400)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 10 Jul 2014 01:15:56 +0000 (18:15 -0700)
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
src/osd/Watch.cc

index 4ef4bd1359838e9223ab6c18729ebec758967e9b..4fdb1246020007402474b65b5da9795424d1bdec 100644 (file)
@@ -281,7 +281,7 @@ Watch::~Watch() {
   assert(!conn);
 }
 
-bool Watch::connected() { return conn; }
+bool Watch::connected() { return !!conn; }
 
 Context *Watch::get_delayed_cb()
 {