aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-07-03 03:16:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-07-03 03:16:16 +0000
commit38a50aa15463362c59af69ac80e95f713bad27e3 (patch)
tree655d6852047f90c13b447b27572eba5ab2ea2035 /pop2.c
parent9aafb07f141bbd1cae1395e34fe3d064918c6712 (diff)
downloadfetchmail-38a50aa15463362c59af69ac80e95f713bad27e3.tar.gz
fetchmail-38a50aa15463362c59af69ac80e95f713bad27e3.tar.bz2
fetchmail-38a50aa15463362c59af69ac80e95f713bad27e3.zip
Merged hostrec and option structures.
svn path=/trunk/; revision=27
Diffstat (limited to 'pop2.c')
-rw-r--r--pop2.c6
1 files changed, 2 insertions, 4 deletions
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);
}