From 836bbce0c428581f40d13d8c3d27d1c7adc31ccb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 26 Oct 1998 19:57:45 +0000 Subject: Jonathan T. Agnew's massive code cleanup. svn path=/trunk/; revision=2137 --- smtp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'smtp.c') diff --git a/smtp.c b/smtp.c index b578fc15..0caf0bb7 100644 --- a/smtp.c +++ b/smtp.c @@ -9,16 +9,16 @@ */ #include -#include #include #include #include "fetchmail.h" #include "socket.h" #include "smtp.h" +#include "config.h" struct opt { - char *name; + const char *name; int value; }; @@ -32,7 +32,7 @@ static struct opt extensions[] = char smtp_response[MSGBUFSIZE]; -int SMTP_helo(int sock,char *host) +int SMTP_helo(int sock,const char *host) /* send a "HELO" message to the SMTP listener */ { int ok; @@ -44,7 +44,7 @@ int SMTP_helo(int sock,char *host) return ok; } -int SMTP_ehlo(int sock, char *host, int *opt) +int SMTP_ehlo(int sock, const char *host, int *opt) /* send a "EHLO" message to the SMTP listener, return extension status bits */ { struct opt *hp; @@ -78,7 +78,7 @@ int SMTP_ehlo(int sock, char *host, int *opt) return SM_UNRECOVERABLE; } -int SMTP_from(int sock, char *from, char *opts) +int SMTP_from(int sock, const char *from, const char *opts) /* send a "MAIL FROM:" message to the SMTP listener */ { int ok; @@ -97,7 +97,7 @@ int SMTP_from(int sock, char *from, char *opts) return ok; } -int SMTP_rcpt(int sock, char *to) +int SMTP_rcpt(int sock, const char *to) /* send a "RCPT TO:" message to the SMTP listener */ { int ok; -- cgit v1.2.3