From 2671f7049e507f643f8a4b4e09699b6caee3e516 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Sun, 20 Jan 2008 21:59:53 +0000 Subject: [PATCH] Make quiet the default output for Windows. git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@185 bc163920-b10d-0410-b2c5-a5491ca2ceef --- cmdline.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmdline.c b/cmdline.c index b564b9d..cd0992b 100644 --- a/cmdline.c +++ b/cmdline.c @@ -135,12 +135,7 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar args_info->verbose_given = 0; args_info->ntlm_given = 0; args_info->inetd_given = 0; -/* For Windows+Putty we cannot allow output by default. -- Dag */ -#ifdef CYGWIN - args_info->quiet_given = 1; -#else args_info->quiet_given = 0; -#endif args_info->header_given = 0; args_info->domain_given = 0; args_info->encrypt_given = 0; @@ -452,6 +447,13 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar exit (0); } +/* For Windows quiet is the default output. -- Dag */ +#ifdef CYGWIN +if (! args_info->verbose_flag ) { + args_info->quiet_flag = 1; +} +#endif + if (args_info->proxy_given ) { char * phost;