From 4cf3b5c33286d5bb0b59eece35d9b166b91ed91c Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 14 Oct 2014 12:02:56 +0200 Subject: [PATCH] FileJournal.cc: use reinterpret_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- src/os/FileJournal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index 5eab7b530aa2f..f679eea20ba6b 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"; -- 2.39.5