From 38a50aa15463362c59af69ac80e95f713bad27e3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Jul 1996 03:16:16 +0000 Subject: Merged hostrec and option structures. svn path=/trunk/; revision=27 --- pop2.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index 57508693..9c7ae378 100644 --- a/pop2.c +++ b/pop2.c @@ -51,7 +51,6 @@ int POP2_stateXFER (int msgsize, int socket, int mboxfd, int topipe); using Post Office Protocol 2. arguments: - servername name of the server to which we'll connect. options fully-specified options (i.e. parsed, defaults invoked, etc). @@ -64,8 +63,7 @@ int POP2_stateXFER (int msgsize, int socket, int mboxfd, int topipe); globals: reads outlevel. *********************************************************************/ -int doPOP2 (servername,options) -char *servername; +int doPOP2 (options) struct optrec *options; { int mboxfd; @@ -90,7 +88,7 @@ struct optrec *options; ; /* open the socket to the POP server */ - if ((socket = Socket(servername,POP2_PORT)) < 0) { + if ((socket = Socket(options->servername,POP2_PORT)) < 0) { perror("doPOP2: socket"); return(PS_SOCKET); } -- cgit v1.2.3