From: Timo Sirainen Date: Wed, 18 Nov 2009 01:32:35 +0000 (-0500) Subject: dsync: Write usage directly to stderr instead of via logging. X-Git-Tag: 2.0.beta1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b80cbf30e3d7f3b668b070f561ee837cd4d512;p=thirdparty%2Fdovecot%2Fcore.git dsync: Write usage directly to stderr instead of via logging. --HG-- branch : HEAD --- diff --git a/src/dsync/dsync.c b/src/dsync/dsync.c index bee1cc4642..8494d72f13 100644 --- a/src/dsync/dsync.c +++ b/src/dsync/dsync.c @@ -9,6 +9,7 @@ #include "dsync-worker.h" #include "dsync-proxy-server.h" +#include #include #include @@ -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 ] [-r] [-u ] [-v]\n" " mirror \n" -" convert " +" convert \n" ); + exit(1); } static void