]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/SimpleMessenger.cc: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 12:45:33 +0000 (13:45 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 12:45:33 +0000 (13:45 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/SimpleMessenger.cc

index 75fdf7b49dcce0e9ebd510d6084ff728840e9109..b244e16579edb79e9f72a1349114686c85358aa6 100644 (file)
@@ -375,7 +375,7 @@ Connection *SimpleMessenger::get_connection(const entity_inst_t& dest)
     }
     Mutex::Locker l(pipe->pipe_lock);
     if (pipe->connection_state)
-      return (Connection *)pipe->connection_state->get();
+      return static_cast<Connection *>(pipe->connection_state->get());
     // we failed too quickly!  retry.  FIXME.
   }
 }