From: Danny Al-Gaaf Date: Tue, 14 Oct 2014 10:02:56 +0000 (+0200) Subject: FileJournal.cc: use reinterpret_cast instead of c-style cast X-Git-Tag: v0.88~29^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4cf3b5c33286d5bb0b59eece35d9b166b91ed91c;p=ceph.git FileJournal.cc: use reinterpret_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index 5eab7b530aa2..f679eea20ba6 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -1717,7 +1717,7 @@ FileJournal::read_entry_result FileJournal::do_read_entry( bufferlist hbl; off64_t _next_pos; wrap_read_bl(pos, sizeof(*h), &hbl, &_next_pos); - h = (entry_header_t *)hbl.c_str(); + h = reinterpret_cast(hbl.c_str()); if (!h->check_magic(pos, header.get_fsid64())) { dout(25) << "read_entry " << pos @@ -1744,7 +1744,7 @@ FileJournal::read_entry_result FileJournal::do_read_entry( entry_header_t *f; bufferlist fbl; wrap_read_bl(pos, sizeof(*f), &fbl, &pos); - f = (entry_header_t *)fbl.c_str(); + f = reinterpret_cast(fbl.c_str()); if (memcmp(f, h, sizeof(*f))) { if (ss) *ss << "bad footer magic, partial entry";