mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
Merge pull request #33038 from tchaikov/wip-librados-reinterpret-cast
librados: prefer reinterpret_cast over c-style cast Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
This commit is contained in:
commit
80487f4a60
@ -2544,7 +2544,7 @@ static void rados_aio_getxattr_complete(rados_completion_t c, void *arg) {
|
||||
}
|
||||
}
|
||||
cdata->user_completion.finish(rc);
|
||||
((librados::AioCompletionImpl*)c)->put();
|
||||
reinterpret_cast<librados::AioCompletionImpl*>(c)->put();
|
||||
delete cdata;
|
||||
}
|
||||
|
||||
@ -2598,7 +2598,7 @@ static void rados_aio_getxattrs_complete(rados_completion_t c, void *arg) {
|
||||
cdata->it = 0;
|
||||
cdata->user_completion.finish(0);
|
||||
}
|
||||
((librados::AioCompletionImpl*)c)->put();
|
||||
reinterpret_cast<librados::AioCompletionImpl*>(c)->put();
|
||||
delete cdata;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user