diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-26 19:57:45 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-26 19:57:45 +0000 |
commit | 836bbce0c428581f40d13d8c3d27d1c7adc31ccb (patch) | |
tree | 3d03fdd0b5bdda66ef27bf852cac646968968882 /smtp.c | |
parent | bcc60aebf68fd7839c708a623048636a03f05043 (diff) | |
download | fetchmail-836bbce0c428581f40d13d8c3d27d1c7adc31ccb.tar.gz fetchmail-836bbce0c428581f40d13d8c3d27d1c7adc31ccb.tar.bz2 fetchmail-836bbce0c428581f40d13d8c3d27d1c7adc31ccb.zip |
Jonathan T. Agnew's massive code cleanup.
svn path=/trunk/; revision=2137
Diffstat (limited to 'smtp.c')
-rw-r--r-- | smtp.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -9,16 +9,16 @@ */ #include <stdio.h> -#include <config.h> #include <unistd.h> #include <string.h> #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; |