From: Danny Al-Gaaf Date: Thu, 26 Apr 2018 08:11:29 +0000 (+0200) Subject: librbd/Journal.cc: use static_cast instead of c-style X-Git-Tag: v13.1.0~44^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2a4af6f470885c55f5f718d2fee3056e267f3a0;p=ceph.git librbd/Journal.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- diff --git a/src/librbd/Journal.cc b/src/librbd/Journal.cc index 272dd2d5ae51..1858bbf058bb 100644 --- a/src/librbd/Journal.cc +++ b/src/librbd/Journal.cc @@ -446,7 +446,7 @@ template void Journal::get_tag_owner(IoCtx& io_ctx, std::string& image_id, std::string *mirror_uuid, ContextWQ *op_work_queue, Context *on_finish) { - CephContext *cct = (CephContext *)io_ctx.cct(); + CephContext *cct = static_cast(io_ctx.cct()); ldout(cct, 20) << __func__ << dendl; auto ctx = new C_GetTagOwner(io_ctx, image_id, mirror_uuid, on_finish);