]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_main.cc: use static_cast instead of c-style
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 30 Apr 2014 21:21:51 +0000 (23:21 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 30 Apr 2014 21:21:51 +0000 (23:21 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_main.cc

index 9614b0787cc193dc36ef135ed641c0bb01943fcf..c5fa46d982947ad54541216ff772acb46c2c406b 100644 (file)
@@ -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<RGWProcessEnv *>(req_info->user_data);
   RGWRados *store = pe->store;
   RGWREST *rest = pe->rest;
   OpsLogSocket *olog = pe->olog;