dovecot-2.2: lib: Fixed compiling unit test in systems where NUL...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 27 12:42:52 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/2ddbdf05b19b
changeset: 19426:2ddbdf05b19b
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 27 14:42:43 2015 +0200
description:
lib: Fixed compiling unit test in systems where NULL isn't of type void*
For example Solaris.

diffstat:

 src/lib/test-ioloop.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r cf956e34dc11 -r 2ddbdf05b19b src/lib/test-ioloop.c
--- 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++)


More information about the dovecot-cvs mailing list