static void _aio_completion_notifier_cb(librados::completion_t cb, void *arg)
{
- ((RGWAioCompletionNotifier *)arg)->cb();
+ (static_cast<RGWAioCompletionNotifier *>(arg))->cb();
}
RGWAioCompletionNotifier::RGWAioCompletionNotifier(RGWCompletionManager *_mgr, const rgw_io_id& _io_id, void *_user_data) : completion_mgr(_mgr),
RGWCompletionManager::io_completion& io, int *blocked_count)
{
assert(lock.is_wlocked());
- RGWCoroutinesStack *stack = (RGWCoroutinesStack *)io.user_info;
+ RGWCoroutinesStack *stack = static_cast<RGWCoroutinesStack *>(io.user_info);
if (context_stacks.find(stack) == context_stacks.end()) {
return;
}
}
void send_ready(const rgw_rest_obj& rest_obj) override {
- RGWRESTStreamS3PutObj *r = (RGWRESTStreamS3PutObj *)req;
+ RGWRESTStreamS3PutObj *r = static_cast<RGWRESTStreamS3PutObj *>(req);
map<string, string> new_attrs;
if (!multipart.is_multipart) {
return set_cr_error(retcode);
}
- if (!((RGWAWSStreamPutCRF *)out_crf.get())->get_etag(petag)) {
+ if (!(static_cast<RGWAWSStreamPutCRF *>(out_crf.get()))->get_etag(petag)) {
ldout(sync_env->cct, 0) << "ERROR: failed to get etag from PUT request" << dendl;
return set_cr_error(-EIO);
}