diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-07-02 21:52:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-07-02 21:52:18 +0000 |
commit | 1a9213a862e2b7c2b3e918d7700a82f014004b08 (patch) | |
tree | e4a60219ff568f53f6f2853cf68a75694c0878c8 /fetchmail.c | |
parent | 971a363228832ae0210491c2629f964b8bb7aea7 (diff) | |
download | fetchmail-1a9213a862e2b7c2b3e918d7700a82f014004b08.tar.gz fetchmail-1a9213a862e2b7c2b3e918d7700a82f014004b08.tar.bz2 fetchmail-1a9213a862e2b7c2b3e918d7700a82f014004b08.zip |
Eliminated options->silent field.
svn path=/trunk/; revision=25
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/fetchmail.c b/fetchmail.c index 9d39d904..dc9d39cb 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -96,16 +96,15 @@ char **argv; FILE *tmpfp; pid_t pid; + if (setdefaults(&def_opts) != 0) + exit(PS_UNDEFINED); + if ((parsestatus = parsecmdline(argc,argv,&cmd_opts)) < 0) exit(PS_SYNTAX); - setoutlevel(&cmd_opts); if (cmd_opts.versioninfo) showversioninfo(); - if (setdefaults(&def_opts) != 0) - exit(PS_UNDEFINED); - if (prc_parse_file(prc_getpathname(&cmd_opts,&def_opts)) != 0) exit(PS_SYNTAX); @@ -329,30 +328,6 @@ struct optrec *options; options->limit); } -/****************************************************************** - function: setoutlevel - description: set output verbosity level. - arguments: - options command-line options. - - ret. value: none. - globals: writes outlevel. - calls: none. - *****************************************************************/ - -int setoutlevel (options) -struct optrec *options; -{ - if (options->verbose) - outlevel = O_VERBOSE; - else if (options->silent) - outlevel = O_SILENT; - else - outlevel = O_NORMAL; -} - - - /********************************************************************* function: openuserfolder description: open the file to which the retrieved messages will |