changeset 19426:2ddbdf05b19b

lib: Fixed compiling unit test in systems where NULL isn't of type void* For example Solaris.
author Timo Sirainen <tss@iki.fi>
date Fri, 27 Nov 2015 14:42:43 +0200
parents cf956e34dc11
children 574c1e5b3d90
files src/lib/test-ioloop.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/test-ioloop.c	Fri Nov 27 14:39:32 2015 +0200
+++ b/src/lib/test-ioloop.c	Fri Nov 27 14:42:43 2015 +0200
@@ -79,9 +79,9 @@
 	for (i = 0; i < N_ELEMENTS(tests); i++) {
 		if (socketpair(AF_UNIX, SOCK_STREAM, 0, tests[i].fd) < 0)
 			i_fatal("socketpair() failed: %m");
-		tests[i].io = io_add(tests[i].fd[0], tests[i].condition, io_callback, NULL);
+		tests[i].io = io_add(tests[i].fd[0], tests[i].condition, io_callback, (void *)NULL);
 	}
-	io = io_add(tests[i-1].fd[0], IO_WRITE, io_callback, NULL);
+	io = io_add(tests[i-1].fd[0], IO_WRITE, io_callback, (void *)NULL);
 	tests[i-1].condition |= IO_WRITE;
 
 	for (i = 0; i < N_ELEMENTS(tests); i++)