From f4a3c52428b7de9e0a96b0272135ebf7c93faa45 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 10:29:31 -0500 Subject: [PATCH] refactor --- repertory/repertory_test/src/remote_fuse_test.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/repertory/repertory_test/src/remote_fuse_test.cpp b/repertory/repertory_test/src/remote_fuse_test.cpp index 0945bac2..1d433232 100644 --- a/repertory/repertory_test/src/remote_fuse_test.cpp +++ b/repertory/repertory_test/src/remote_fuse_test.cpp @@ -508,9 +508,10 @@ static void read_and_write_test(repertory::remote_fuse::remote_client &client) { EXPECT_EQ(10, client.fuse_write(api_path.c_str(), "1234567890", 10, 0, handle)); data_buffer buffer(10); - EXPECT_EQ(10, - client.fuse_read(api_path.c_str(), &buffer[0], 10, 0, handle)); - EXPECT_EQ(0, memcmp("1234567890", &buffer[0], 10)); + EXPECT_EQ(10, client.fuse_read(api_path.c_str(), + reinterpret_cast(buffer.data()), 10, + 0, handle)); + EXPECT_EQ(0, std::memcmp("1234567890", buffer.data(), 10)); EXPECT_EQ(0, client.fuse_release(api_path.c_str(), handle)); } @@ -534,9 +535,10 @@ read_and_write_base64_test(repertory::remote_fuse::remote_client &client) { EXPECT_EQ(10, client.fuse_write_base64(api_path.c_str(), &data[0], data.size(), 0, handle)); data_buffer buffer(10); - EXPECT_EQ(10, - client.fuse_read(api_path.c_str(), &buffer[0], 10, 0, handle)); - EXPECT_EQ(0, memcmp("1234567890", &buffer[0], 10)); + EXPECT_EQ(10, client.fuse_read(api_path.c_str(), + reinterpret_cast(buffer.data()), 10, + 0, handle)); + EXPECT_EQ(0, std::memcmp("1234567890", buffer.data(), 10)); EXPECT_EQ(0, client.fuse_release(api_path.c_str(), handle)); }