From baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Tue, 5 Mar 2024 18:44:51 +0100 Subject: [#3211] Almost done --- src/lib/asiodns/tests/io_fetch_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/asiodns/tests/io_fetch_unittest.cc') diff --git a/src/lib/asiodns/tests/io_fetch_unittest.cc b/src/lib/asiodns/tests/io_fetch_unittest.cc index 1001807ccd..47bac7ce93 100644 --- a/src/lib/asiodns/tests/io_fetch_unittest.cc +++ b/src/lib/asiodns/tests/io_fetch_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2020 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -200,7 +200,7 @@ public: // identical, then check that the data is identical as well. EXPECT_EQ(msgbuf_->getLength(), length); EXPECT_TRUE(equal(receive_buffer_, (receive_buffer_ + length - 1), - static_cast(msgbuf_->getData()))); + msgbuf_->getData())); // Return a message back to the IOFetch object. if (!bad_qid) { @@ -313,7 +313,7 @@ public: receive_buffer_[2] = receive_buffer_[3] = 0; EXPECT_TRUE(equal((receive_buffer_ + 2), (receive_buffer_ + cumulative_ - 2), - static_cast(msgbuf_->getData()))); + msgbuf_->getData())); // ... and return a message back. This has to be preceded by a two-byte // count field. @@ -473,7 +473,7 @@ public: result_buff_->writeUint8At(return_data_[0], 0); result_buff_->writeUint8At(return_data_[1], 1); } - const uint8_t* start = static_cast(result_buff_->getData()); + const uint8_t* start = result_buff_->getData(); EXPECT_TRUE(equal(return_data_.begin(), return_data_.end(), start)); } } -- cgit v1.2.3