diff options
Diffstat (limited to 'unittests.c')
-rw-r--r-- | unittests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests.c b/unittests.c index a0d84c8..2b6c058 100644 --- a/unittests.c +++ b/unittests.c @@ -525,7 +525,7 @@ static int test_cats_ok(void) a = new_from_cstring("abc"); b = new_from_cstring("def"); - c = dynstr_cat(a, b, NULL); + c = dynstr_cat(a, b, (void *) NULL); size = dynstr_memcpy(buf, c, 0, dynstr_len(c)); FAIL_UNLESS_EQUAL(size, 6); FAIL_UNLESS_EQUAL(memcmp(buf, "abcdef", 6), 0); @@ -543,7 +543,7 @@ static int test_cat_returns_NULL_for_first_malloc_failure(void) a = new_from_cstring("abc"); b = new_from_cstring("def"); dynstr_set_malloc(fail_malloc); - c = dynstr_cat(a, b, NULL); + c = dynstr_cat(a, b, (void *) NULL); FAIL_UNLESS_EQUAL(c, NULL); return true; } @@ -559,7 +559,7 @@ static int test_cat_returns_NULL_for_second_malloc_failure(void) b = new_from_cstring("def"); dynstr_set_malloc(fail_malloc); fail_malloc_after = 1; - c = dynstr_cat(a, b, NULL); + c = dynstr_cat(a, b, (void *) NULL); FAIL_UNLESS_EQUAL(c, NULL); return true; } @@ -1131,7 +1131,7 @@ static int readline_test(Dynstr *(*callback)(char *filename)) line1 = dynstr_new_from_constant_cstring(cline1); line2 = dynstr_new_from_constant_cstring(cline2); - lines = dynstr_cat(line1, line2, NULL); + lines = dynstr_cat(line1, line2, (void *) NULL); if (dynstr_write(fd, lines) != dynstr_len(lines)) abort(); close(fd); |