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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/e5cc81734221
changeset: 8782:e5cc81734221
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 513ba5a698a1 -r e5cc81734221 src/master/main.c
--- a/src/master/main.c	Wed Feb 25 14:26:25 2009 -0500
+++ b/src/master/main.c	Thu Feb 26 11:24:21 2009 -0500
@@ -365,7 +365,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
@@ -463,7 +464,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