]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Write usage directly to stderr instead of via logging.
authorTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 01:32:35 +0000 (20:32 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 01:32:35 +0000 (20:32 -0500)
--HG--
branch : HEAD

src/dsync/dsync.c

index bee1cc4642911b4c02f3253413fb63925974a539..8494d72f13535baeade93ffa10472e40646161d4 100644 (file)
@@ -9,6 +9,7 @@
 #include "dsync-worker.h"
 #include "dsync-proxy-server.h"
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 
@@ -56,11 +57,12 @@ static void run_cmd(const char *cmd, int *fd_in_r, int *fd_out_r)
 static void ATTR_NORETURN
 usage(void)
 {
-       i_fatal(
+       fprintf(stderr,
 "usage: dsync [-b <mailbox>] [-r] [-u <user>] [-v]\n"
 "  mirror  <command to execute remote dsync>\n"
-"  convert <source mail_location>"
+"  convert <source mail_location>\n"
 );
+       exit(1);
 }
 
 static void