From ae9a7d0627994056e35f04a029e79998242ee160 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 30 Apr 2014 23:21:51 +0200 Subject: [PATCH] rgw_main.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index 9614b0787cc19..c5fa46d982947 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; -- 2.39.5