diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-30 15:24:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-30 15:24:13 +0000 |
commit | 453e03466352e99d3cfabce60e1d4d21a50972a7 (patch) | |
tree | 66acc7ed32cb4aad46fac0f47c2d3fafe0d770ed | |
parent | 8a6f9f2bd1f2c2a11f28fcb7a5e0642687863e72 (diff) | |
download | fetchmail-453e03466352e99d3cfabce60e1d4d21a50972a7.tar.gz fetchmail-453e03466352e99d3cfabce60e1d4d21a50972a7.tar.bz2 fetchmail-453e03466352e99d3cfabce60e1d4d21a50972a7.zip |
Get rid of an unnecessary function.
svn path=/trunk/; revision=437
-rw-r--r-- | smtp.c | 8 | ||||
-rw-r--r-- | smtp.h | 1 |
2 files changed, 1 insertions, 8 deletions
@@ -104,7 +104,7 @@ static int SMTP_check(int socket,char *argbuf) int ok; char buf[SMTPBUFSIZE]; - if ((ok = SMTP_Gets(socket, buf, sizeof(buf)-1)) > 0) { + if ((ok = read(socket, buf, sizeof(buf)-1)) > 0) { buf[ok] = '\0'; if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP< %s", buf); @@ -149,10 +149,4 @@ int SMTP_ok(int socket,char *argbuf) return ok; } -int SMTP_Gets(int socket,char *buf,int sz) -/* gets a line from the SMTP connection, returns bytes read */ -{ - return read(socket,buf,sz); -} - /* smtp.c ends here */ @@ -22,7 +22,6 @@ int SMTP_data(int socket); int SMTP_eom(int socket); int SMTP_quit(int socket); int SMTP_ok(int socket,char *argbuf); -int SMTP_Gets(int socket,char *buf,int sz); void SMTP_rset(int socket); #endif /* HAVE_PROTOTYPES */ |