diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-01-13 07:31:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-01-13 07:31:25 +0000 |
commit | e765df08b2c8868d4bda6ef660b209c560e4eded (patch) | |
tree | c50c23f9d6d6697a55fddecc67baba1522567d88 /sink.c | |
parent | 798868f26c1bd20798f4ffc1a011bed9d063de99 (diff) | |
download | fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.tar.gz fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.tar.bz2 fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.zip |
Sunil Shetye's fix for SSL configuration.
svn path=/trunk/; revision=3875
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -15,7 +15,6 @@ #include <errno.h> #include <string.h> #include <signal.h> -#include <time.h> #ifdef HAVE_MEMORY_H #include <memory.h> #endif /* HAVE_MEMORY_H */ @@ -31,12 +30,10 @@ #include <varargs.h> #endif #include <ctype.h> -#include <time.h> /* for W* macros after pclose() */ #define _USE_BSD #include <sys/types.h> -#include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> @@ -224,7 +221,7 @@ int smtp_open(struct query *ctl) else if (ctl->smtphost && ctl->smtphost[0] != '/') { char * cp; - if (cp = strchr (ctl->smtphost, '/')) + if ((cp = strchr (ctl->smtphost, '/'))) { /* As an alternate port for smtphost is specified, we need to strip it from domain name. */ @@ -702,7 +699,7 @@ int stuffline(struct query *ctl, char *buf) n = 0; if (ctl->mda || ctl->bsmtp) - n = fwrite(buf, 1, last - buf, sinkfp); + n = fwrite(buf, last - buf, 1, sinkfp); else if (ctl->smtp_socket != -1) n = SockWrite(ctl->smtp_socket, buf, last - buf); |