From 11332932de52971283f80075e1fe26677eaecbd0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Jul 1996 13:53:34 +0000 Subject: Change of name. svn path=/trunk/; revision=35 --- options.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'options.c') diff --git a/options.c b/options.c index 7ae374d8..4e782ba8 100644 --- a/options.c +++ b/options.c @@ -74,7 +74,7 @@ static struct option longoptions[] = { arguments: argc argument count. argv argument strings. - options pointer to a struct hostrec to receive the parsed + queryctl pointer to a struct hostrec to receive the parsed options. return value: if positive, argv index of last parsed option + 1 @@ -276,39 +276,39 @@ struct hostrec *options; globals: writes outlevel, poprcfile. *********************************************************************/ -int setdefaults (options) -struct hostrec *options; +int setdefaults (queryctl) +struct hostrec *queryctl; { int uid; struct passwd *pw; char *mailvar; - bzero(options,sizeof(*options)); + bzero(queryctl,sizeof(*queryctl)); if ((pw = getpwuid(uid = getuid())) == NULL) { fprintf(stderr,"No passwd entry for uid %d\n",uid); return(-1); } - options->protocol = DEF_PROTOCOL; + queryctl->protocol = DEF_PROTOCOL; #if defined(KEEP_IS_DEFAULT) - options->keep = 1; + queryctl->keep = 1; #else - options->keep = 0; + queryctl->keep = 0; #endif - strcpy(options->localname,pw->pw_name); - strcpy(options->remotename,pw->pw_name); + strcpy(queryctl->localname,pw->pw_name); + strcpy(queryctl->remotename,pw->pw_name); #if defined(USERFOLDER) && defined(HAVE_FLOCK) - options->output = TO_FOLDER; - sprintf(options->userfolder, USERFOLDER, pw->pw_name); + queryctl->output = TO_FOLDER; + sprintf(queryctl->userfolder, USERFOLDER, pw->pw_name); #else - options->output = TO_MDA; + queryctl->output = TO_MDA; #endif - (void) sprintf(options->mda, DEF_MDA, options->localname); + (void) sprintf(queryctl->mda, DEF_MDA, queryctl->localname); poprcfile = (char *) xmalloc(strlen(pw->pw_dir)+strlen(POPRC_NAME)+2); -- cgit v1.2.3