aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-08 17:51:52 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-08 17:51:52 +0000
commitcb236290e267f17d5f81a18d742b81f1b74b05a2 (patch)
treee6c74acdaa0881bb8accab285d77f146381b2f81 /driver.c
parent7b11f0ff9972d8046e69f98948fdab26b5199caf (diff)
downloadfetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.tar.gz
fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.tar.bz2
fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.zip
Prototypes everywhere.
svn path=/trunk/; revision=515
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/driver.c b/driver.c
index dd65f5e7..13752cf4 100644
--- a/driver.c
+++ b/driver.c
@@ -76,9 +76,8 @@ int count; /* length of src */
return len;
}
-static void vtalarm(timeleft)
+static void vtalarm(int timeleft)
/* reset the nonresponse-timeout */
-int timeleft;
{
struct itimerval ntimeout;
@@ -97,10 +96,8 @@ static void vtalarm_handler (int signal)
#ifdef HAVE_RES_SEARCH
#define MX_RETRIES 3
-static int is_host_alias(name, ctl)
+static int is_host_alias(const char *name, struct query *ctl)
/* determine whether name is a DNS alias of the hostname */
-const char *name;
-struct query *ctl;
{
struct hostent *he;
int i;
@@ -202,9 +199,8 @@ struct idlist **xmit_names; /* list of recipient names parsed out */
}
#endif /* HAVE_RES_SEARCH */
-static FILE *smtp_open(ctl)
+static FILE *smtp_open(struct query *ctl)
/* try to open a socket to the appropriate SMTP server for this query */
-struct query *ctl;
{
ctl = ctl->leader; /* go to the SMTP leader for this query */
@@ -234,9 +230,9 @@ struct query *ctl;
static int gen_readmsg (sockfp, len, delimited, ctl)
/* read message content and ship to SMTP or MDA */
-FILE *sockfp; /* to which the server is connected */
-long len; /* length of message */
-int delimited; /* does the protocol use a message delimiter? */
+FILE *sockfp; /* to which the server is connected */
+long len; /* length of message */
+int delimited; /* does the protocol use a message delimiter? */
struct query *ctl; /* query control record */
{
char buf [MSGBUFSIZE+1];
@@ -535,10 +531,10 @@ struct query *ctl; /* query control record */
#ifdef KERBEROS_V4
int
-kerberos_auth (socket, canonical)
+kerberos_auth (int socket, canonical)
/* authenticate to the server host using Kerberos V4 */
int socket; /* socket to server host */
-char *canonical; /* server name */
+const char *canonical; /* server name */
{
char * host_primary;
KTEXT ticket;