--- a/tests/test_streams.c Mon Jan 06 23:29:41 2025 +0100 +++ b/tests/test_streams.c Tue Jan 07 00:12:46 2025 +0100 @@ -43,23 +43,23 @@ CX_TEST_DO { size_t result = cx_stream_bncopy(&source, &target, - (cx_read_func) cxBufferRead, - (cx_write_func) cxBufferWrite, + cxBufferReadFunc, + cxBufferWriteFunc, tmp, 4, 0); CX_TEST_ASSERT(result == 0); CX_TEST_ASSERT(target.size == 0); result = cx_stream_bncopy(&source, &target, - (cx_read_func) cxBufferRead, - (cx_write_func) cxBufferWrite, + cxBufferReadFunc, + cxBufferWriteFunc, tmp, 4, 20); CX_TEST_ASSERT(result == 20); CX_TEST_ASSERT(target.size == 20); CX_TEST_ASSERT(strcmp("This is a stream cop\0", tbuf) == 0); result = cx_stream_bcopy(&source, &target, - (cx_read_func) cxBufferRead, - (cx_write_func) cxBufferWrite, + cxBufferReadFunc, + cxBufferWriteFunc, NULL, 16); CX_TEST_ASSERT(result == 7); @@ -82,16 +82,16 @@ CX_TEST_DO { size_t result = cx_stream_ncopy(&source, &target, - (cx_read_func) cxBufferRead, - (cx_write_func) cxBufferWrite, + cxBufferReadFunc, + cxBufferWriteFunc, 20); CX_TEST_ASSERT(result == 20); CX_TEST_ASSERT(target.size == 20); CX_TEST_ASSERT(strcmp("This is a stream cop\0", tbuf) == 0); result = cx_stream_copy(&source, &target, - (cx_read_func) cxBufferRead, - (cx_write_func) cxBufferWrite); + cxBufferReadFunc, + cxBufferWriteFunc); CX_TEST_ASSERT(result == 7); CX_TEST_ASSERT(target.size == 27);