From: Danny Al-Gaaf Date: Wed, 30 Apr 2014 21:21:51 +0000 (+0200) Subject: rgw_main.cc: use static_cast instead of c-style X-Git-Tag: v0.81~76^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae9a7d0627994056e35f04a029e79998242ee160;p=ceph.git rgw_main.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index 9614b0787cc..c5fa46d9829 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -673,7 +673,7 @@ void RGWLoadGenProcess::handle_request(RGWRequest *r) static int civetweb_callback(struct mg_connection *conn) { struct mg_request_info *req_info = mg_get_request_info(conn); - RGWProcessEnv *pe = (RGWProcessEnv *)req_info->user_data; + RGWProcessEnv *pe = static_cast(req_info->user_data); RGWRados *store = pe->store; RGWREST *rest = pe->rest; OpsLogSocket *olog = pe->olog;