dovecot-1.1: Compile fix for systems where printf() is a macro.

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 26 18:24:43 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/2c7111b2b0d0
changeset: 8173:2c7111b2b0d0
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 26 11:24:21 2009 -0500
description:
Compile fix for systems where printf() is a macro.

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/master/main.c |    6 ++++--

diffs (23 lines):

diff -r a9bfb7a78e95 -r 2c7111b2b0d0 src/master/main.c
--- a/src/master/main.c	Tue Feb 24 16:55:11 2009 -0500
+++ b/src/master/main.c	Thu Feb 26 11:24:21 2009 -0500
@@ -361,7 +361,8 @@ static void print_help(void)
 
 static void print_build_options(void)
 {
-	printf("Build options:"
+	static const char *build_options =
+		"Build options:"
 #ifdef IOLOOP_EPOLL
 		" ioloop=epoll"
 #endif
@@ -459,7 +460,8 @@ static void print_build_options(void)
 #ifdef USERDB_VPOPMAIL
 		" vpopmail"
 #endif
-	"\n");
+	"\n";
+	puts(build_options);
 }
 
 int main(int argc, char *argv[])


More information about the dovecot-cvs mailing list