From 453e03466352e99d3cfabce60e1d4d21a50972a7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 30 Oct 1996 15:24:13 +0000 Subject: Get rid of an unnecessary function. svn path=/trunk/; revision=437 --- smtp.c | 8 +------- smtp.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/smtp.c b/smtp.c index 1e8de950..6874705f 100644 --- a/smtp.c +++ b/smtp.c @@ -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 */ diff --git a/smtp.h b/smtp.h index d862314f..939ebfdc 100644 --- a/smtp.h +++ b/smtp.h @@ -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 */ -- cgit v1.2.3