aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-04 17:09:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-04 17:09:03 +0000
commit463801e2cca6d519050daa49ba330f0a14e46da8 (patch)
treef3386e8abc37839222c3d0f14266a7d9a6d2a23a
parent45cc66a611304748f4f2e2d38d8eb00527c93d3e (diff)
downloadfetchmail-463801e2cca6d519050daa49ba330f0a14e46da8.tar.gz
fetchmail-463801e2cca6d519050daa49ba330f0a14e46da8.tar.bz2
fetchmail-463801e2cca6d519050daa49ba330f0a14e46da8.zip
Socket open rename.
svn path=/trunk/; revision=481
-rw-r--r--driver.c4
-rw-r--r--fetchmail.h2
-rw-r--r--socket.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index 0c20746b..e18fce8d 100644
--- a/driver.c
+++ b/driver.c
@@ -472,7 +472,7 @@ struct query *ctl;
/* if no socket to this host is already set up, try to open one */
if (ctl->smtp_sockfp == (FILE *)NULL)
{
- if ((ctl->smtp_sockfp = Socket(ctl->smtphost, SMTP_PORT)) == (FILE *)NULL)
+ if ((ctl->smtp_sockfp = sockopen(ctl->smtphost, SMTP_PORT)) == (FILE *)NULL)
return((FILE *)NULL);
else if (SMTP_ok(ctl->smtp_sockfp, NULL) != SM_OK
|| SMTP_helo(ctl->smtp_sockfp, ctl->servername) != SM_OK)
@@ -897,7 +897,7 @@ const struct method *proto; /* protocol method table */
FILE *sockfp;
/* open a socket to the mail server */
- if ((sockfp = Socket(ctl->servername,
+ if ((sockfp = sockopen(ctl->servername,
ctl->port ? ctl->port : protocol->port)) == (FILE *)NULL)
{
perror("fetchmail, connecting to host");
diff --git a/fetchmail.h b/fetchmail.h
index ee28098a..e23ecfda 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -186,7 +186,7 @@ int openmailpipe (char **);
int closemailpipe(int);
int daemonize(const char *, void (*)(int));
-FILE *Socket(char *, int);
+FILE *sockopen(char *, int);
int prc_parse_file(const char *);
int prc_filecheck(const char *);
diff --git a/socket.c b/socket.c
index 08f660ad..f759c216 100644
--- a/socket.c
+++ b/socket.c
@@ -28,7 +28,7 @@
#define INTERNAL_BUFSIZE 2048
-FILE *Socket(host, clientPort)
+FILE *sockopen(host, clientPort)
char *host;
int clientPort;
{