From e67db211da6cb30af90da0c824aeced6ff09ea0b Mon Sep 17 00:00:00 2001 From: princeb612 Date: Fri, 19 Apr 2024 15:58:33 +0900 Subject: [PATCH] hotplace rev.496 grooming --- test/httptest/sample.cpp | 4 ++-- test/string/sample.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/httptest/sample.cpp b/test/httptest/sample.cpp index 5d080c6d..14c1fa46 100644 --- a/test/httptest/sample.cpp +++ b/test/httptest/sample.cpp @@ -708,10 +708,10 @@ void test_get_tlsclient() { group.add(&http); ret = cli.read(sock, handle, buf, sizeof(buf), &sizeread); - stream_read.produce(buf, sizeread); + stream_read.produce((byte_t*)buf, sizeread); while (errorcode_t::more_data == ret) { ret = cli.more(sock, handle, buf, sizeof(buf), &sizeread); - stream_read.produce(buf, sizeread); + stream_read.produce((byte_t*)buf, sizeread); } stream_read.write(&group, &stream_interpreted); diff --git a/test/string/sample.cpp b/test/string/sample.cpp index 86da0e62..b32b316d 100644 --- a/test/string/sample.cpp +++ b/test/string/sample.cpp @@ -258,7 +258,7 @@ void test_scan() { _test_case.assert(true, __FUNCTION__, "scan"); basic_stream bs; - dump_memory((byte_t*)data, strlen(data), &bs, 16, 0, 0x0, dump_memory_flag_t::header); + dump_memory((byte_t*)data, strlen(data), &bs, 16, 0, 0x0, dump_memory_flag_t::dump_header); std::cout << bs.c_str() << std::endl; } @@ -282,7 +282,7 @@ void test_scan2() { _test_case.assert(true, __FUNCTION__, "scan"); basic_stream bs; - dump_memory((byte_t*)data, strlen(data), &bs, 16, 0, 0x0, dump_memory_flag_t::header); + dump_memory((byte_t*)data, strlen(data), &bs, 16, 0, 0x0, dump_memory_flag_t::dump_header); std::cout << bs.c_str() << std::endl; }