aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-17 17:44:12 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-17 17:44:12 +0000
commitaec15b99bf6b340227895ecfa6136e9d638c701a (patch)
tree54ea8d79169dd127d239a7f304c1007eb473ea6f /options.c
parent6acb0b4730875ea953f04df5fa6c5680fd98ca09 (diff)
downloadfetchmail-aec15b99bf6b340227895ecfa6136e9d638c701a.tar.gz
fetchmail-aec15b99bf6b340227895ecfa6136e9d638c701a.tar.bz2
fetchmail-aec15b99bf6b340227895ecfa6136e9d638c701a.zip
Remove all those obnoxious block comments.
svn path=/trunk/; revision=345
Diffstat (limited to 'options.c')
-rw-r--r--options.c47
1 files changed, 15 insertions, 32 deletions
diff --git a/options.c b/options.c
index f85ff2d1..54688561 100644
--- a/options.c
+++ b/options.c
@@ -1,15 +1,9 @@
/*
+ * options.c -- command-line option processing
+ *
* For license terms, see the file COPYING in this directory.
*/
-/***********************************************************************
- module: options.c
- project: fetchmail
- programmer: Eric S. Raymond, <esr@thyrsus.com>
- description: command-line option processing
-
- ***********************************************************************/
-
#include <config.h>
#include <stdio.h>
#include <pwd.h>
@@ -79,32 +73,20 @@ static struct option longoptions[] = {
{(char *) 0, no_argument, (int *) 0, 0 }
};
-
-/*********************************************************************
- function: parsecmdline
- description: parse/validate the command line options.
- arguments:
- argc argument count.
- argv argument strings.
- queryctl pointer to a struct hostrec to receive the parsed
- options.
-
- return value: if positive, argv index of last parsed option + 1
- (presumes one or more server names follows).
- if zero, the command line switches are such that
- no server names are required (e.g. --version).
- if negative, the command line is has one or more
- syntax errors.
- calls: none.
- globals: writes outlevel, versioninfo, yydebug, logfile,
- poll_interval, quitmode, rcfile
- *********************************************************************/
-
int parsecmdline (argc,argv,queryctl)
-int argc;
-char **argv;
-struct hostrec *queryctl;
+/* parse and validate the command line options */
+int argc; /* argument count */
+char **argv; /* argument strings */
+struct hostrec *queryctl; /* option record to be initialized */
{
+ /*
+ * return value: if positive, argv index of last parsed option + 1
+ * (presumes one or more server names follows). if zero, the
+ * command line switches are such that no server names are
+ * required (e.g. --version). if negative, the command line is
+ * has one or more syntax errors.
+ */
+
int c;
int ocount = 0; /* count of destinations specified */
int errflag = 0; /* TRUE when a syntax error is detected */
@@ -282,3 +264,4 @@ struct hostrec *queryctl;
return(optind);
}
+/* options.c ends here */