diff options
Diffstat (limited to 'test/test_writer.c')
-rw-r--r-- | test/test_writer.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/test_writer.c b/test/test_writer.c index 76d046d7..0c78495e 100644 --- a/test/test_writer.c +++ b/test/test_writer.c @@ -77,12 +77,15 @@ test_write_long_literal(void) } static size_t -null_sink(const void* const buf, const size_t len, void* const stream) +null_sink(const void* const buf, + const size_t size, + const size_t nmemb, + void* const stream) { (void)buf; (void)stream; - return len; + return size * nmemb; } static void @@ -167,9 +170,13 @@ test_strict_write(void) // Produce a write error without setting errno static size_t -error_sink(const void* const buf, const size_t len, void* const stream) +error_sink(const void* const buf, + const size_t size, + const size_t len, + void* const stream) { (void)buf; + (void)size; (void)len; (void)stream; return 0U; |