--- a/tests/test_buffer.c Mon Jan 06 23:29:41 2025 +0100 +++ b/tests/test_buffer.c Tue Jan 07 00:12:46 2025 +0100 @@ -1084,7 +1084,7 @@ flush.blksize = 32; flush.blkmax = 1; flush.target = ⌖ - flush.wfunc = (cx_write_func)cxBufferWrite; + flush.wfunc = cxBufferWriteFunc; CX_TEST_ASSERT(0 == cxBufferEnableFlushing(&buf, flush)); size_t written = cxBufferWrite("foo", 1, 3, &buf); CX_TEST_ASSERT(written == 3); @@ -1117,7 +1117,7 @@ flush.blksize = 32; flush.blkmax = 1; flush.target = ⌖ - flush.wfunc = (cx_write_func)cxBufferWrite; + flush.wfunc = cxBufferWriteFunc; CX_TEST_ASSERT(0 == cxBufferEnableFlushing(&buf, flush)); size_t written = cxBufferWrite("foobar", 1, 6, &buf); CX_TEST_ASSERT(written == 6); @@ -1191,7 +1191,7 @@ flush.blksize = 2; flush.blkmax = 2; flush.target = ⌖ - flush.wfunc = (cx_write_func)cxBufferWrite; + flush.wfunc = cxBufferWriteFunc; CX_TEST_ASSERT(0 == cxBufferEnableFlushing(&buf, flush)); CX_TEST_ASSERT(buf.size == 7); buf.pos = 5;