From: Danny Al-Gaaf Date: Wed, 7 Jan 2015 15:51:24 +0000 (+0100) Subject: os/ObjectStore.h: use reinterpret_cast instead of c-style cast X-Git-Tag: suse_latest~36^2~9^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=86b7c388b09836e88ba550f439194f75c246c10c;p=ceph.git os/ObjectStore.h: use reinterpret_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 2167318371d..f0744cb27ae 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -629,7 +629,7 @@ public: char* raw_p = p->c_str(); char* raw_end = raw_p + p->length(); while (raw_p < raw_end) { - _update_op((Op*)raw_p, cm, om); + _update_op(reinterpret_cast(raw_p), cm, om); raw_p += sizeof(Op); } } @@ -814,7 +814,7 @@ public: Op* decode_op() { assert(ops > 0); - Op* op = (Op*)op_buffer_p; + Op* op = reinterpret_cast(op_buffer_p); op_buffer_p += sizeof(Op); ops--; @@ -880,7 +880,7 @@ private: op_ptr.set_offset(op_ptr.offset() + sizeof(Op)); char* p = ptr.c_str(); - return (Op*)p; + return reinterpret_cast(p); } __le32 _get_coll_id(const coll_t& coll) { map::iterator c = coll_index.find(coll);