mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
librados: prefer reinterpret_cast over c-style cast
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
4813b4132b
commit
5fcf0641cd
@ -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