diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:53:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:53:38 +0000 |
commit | 0318e71e86068a7c1789cb6e1a54a29df112d263 (patch) | |
tree | e83a41e649e0694e143b94a676653d0a850dd33c /smtp.c | |
parent | f9f66749c22dcb49ed96d9aa43c4979d7b27742f (diff) | |
download | fetchmail-0318e71e86068a7c1789cb6e1a54a29df112d263.tar.gz fetchmail-0318e71e86068a7c1789cb6e1a54a29df112d263.tar.bz2 fetchmail-0318e71e86068a7c1789cb6e1a54a29df112d263.zip |
STEP 5: SockPrintf() conversion.
svn path=/trunk/; revision=448
Diffstat (limited to 'smtp.c')
-rw-r--r-- | smtp.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,7 +23,7 @@ int SMTP_helo(FILE *sockfp,char *host) { int ok; - SockPrintf(fileno(sockfp),"HELO %s\r\n", host); + SockPrintf(sockfp,"HELO %s\r\n", host); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP> HELO %s\n", host); ok = SMTP_ok(sockfp,NULL); @@ -35,7 +35,7 @@ int SMTP_from(FILE *sockfp, char *from) { int ok; - SockPrintf(fileno(sockfp),"MAIL FROM:<%s>\r\n", from); + SockPrintf(sockfp,"MAIL FROM:<%s>\r\n", from); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP> MAIL FROM:<%s>\n", from); ok = SMTP_ok(sockfp,NULL); @@ -47,7 +47,7 @@ int SMTP_rcpt(FILE *sockfp, char *to) { int ok; - SockPrintf(fileno(sockfp),"RCPT TO:<%s>\r\n", to); + SockPrintf(sockfp,"RCPT TO:<%s>\r\n", to); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP> RCPT TO:<%s>\n", to); ok = SMTP_ok(sockfp,NULL); @@ -59,7 +59,7 @@ int SMTP_data(FILE *sockfp) { int ok; - SockPrintf(fileno(sockfp),"DATA\r\n"); + SockPrintf(sockfp,"DATA\r\n"); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP> DATA\n"); ok = SMTP_ok(sockfp,NULL); @@ -71,7 +71,7 @@ int SMTP_quit(FILE *sockfp) { int ok; - SockPrintf(fileno(sockfp),"QUIT\r\n"); + SockPrintf(sockfp,"QUIT\r\n"); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP> QUIT\n"); ok = SMTP_ok(sockfp,NULL); @@ -83,7 +83,7 @@ int SMTP_eom(FILE *sockfp) { int ok; - SockPrintf(fileno(sockfp),".\r\n"); + SockPrintf(sockfp,".\r\n"); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP>. (EOM)\n"); ok = SMTP_ok(sockfp,NULL); @@ -93,7 +93,7 @@ int SMTP_eom(FILE *sockfp) void SMTP_rset(FILE *sockfp) /* send a "RSET" message to the SMTP listener */ { - SockPrintf(fileno(sockfp),"RSET\r\n"); + SockPrintf(sockfp,"RSET\r\n"); if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP> RSET\n"); } |