aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail.c5
-rw-r--r--interface.c2
-rw-r--r--pop3.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 55fd84cb..cd8657bc 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1127,7 +1127,7 @@ static int load_params(int argc, char **argv, int optind)
return(implicitmode);
}
-void termhook(int sig)
+static void termhook(int sig)
/* to be executed on normal or signal-induced termination */
{
struct query *ctl;
@@ -1266,7 +1266,8 @@ static int query_host(struct query *ctl)
}
}
-void dump_params (struct runctl *runp, struct query *querylist, flag implicit)
+static void dump_params (struct runctl *runp,
+ struct query *querylist, flag implicit)
/* display query parameters in English */
{
struct query *ctl;
diff --git a/interface.c b/interface.c
index 52939994..cb42e8be 100644
--- a/interface.c
+++ b/interface.c
@@ -156,7 +156,7 @@ static int inet_aton(const char *cp, struct in_addr *inp) {
memcpy(inp, &addr, sizeof(addr));
return 1;
}
-#endif HAVE_INET_ATON
+#endif /* HAVE_INET_ATON */
void interface_parse(char *buf, struct hostdata *hp)
/* parse 'interface' specification */
diff --git a/pop3.c b/pop3.c
index 9265e713..9930679d 100644
--- a/pop3.c
+++ b/pop3.c
@@ -222,7 +222,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
strcpy(msg,start);
strcat(msg,ctl->password);
- strcpy(ctl->digest, MD5Digest(msg));
+ strcpy(ctl->digest, MD5Digest((unsigned char *)msg));
ok = gen_transact(sock, "APOP %s %s", ctl->remotename, ctl->digest);
break;
@@ -561,7 +561,7 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp)
if (linecount == 5)
{
/* Wrap address with To: <> so nxtaddr() likes it */
- sdps_envto = malloc(strlen(buf)+7);
+ sdps_envto = xmalloc(strlen(buf)+7);
sprintf(sdps_envto,"To: <%s>",buf);
}
} while