diff options
-rw-r--r-- | base64.c | 2 | ||||
-rw-r--r-- | driver.c | 6 | ||||
-rw-r--r-- | fetchmail.c | 5 | ||||
-rw-r--r-- | imap.c | 2 | ||||
-rw-r--r-- | rfc822.c | 2 |
5 files changed, 8 insertions, 9 deletions
@@ -55,7 +55,7 @@ int from64tobits(char *out, const char *in) /* base 64 to raw bytes in quasi-big-endian order, returning count of bytes */ { int len = 0; - register char digit1, digit2, digit3, digit4; + register unsigned char digit1, digit2, digit3, digit4; if (in[0] == '+' && in[1] == ' ') in += 2; @@ -1163,7 +1163,7 @@ struct query *ctl; /* parsed options with merged-in defaults */ const struct method *proto; /* protocol method table */ { int ok, js, pst; - char *msg, *sp, *cp, realname[HOSTLEN]; + char *msg, *cp, realname[HOSTLEN]; void (*sigsave)(); #ifndef KERBEROS_V4 @@ -1218,7 +1218,7 @@ const struct method *proto; /* protocol method table */ } else { - char buf [POPBUFSIZE+1]; + char buf [POPBUFSIZE+1], *sp; int *msgsizes, len, num, count, new, deletions = 0; int sock, port, fetches; struct idlist *idp; @@ -1278,6 +1278,7 @@ const struct method *proto; /* protocol method table */ * the .fetchmailrc id. */ pst = 0; + sp = (char *)NULL; /* sacrifice to -Wall */ for (cp = buf; *cp; cp++) { switch (pst) @@ -1644,6 +1645,7 @@ const struct method *proto; /* protocol method table */ close(sock); } + msg = (char *)NULL; /* sacrifice to -Wall */ switch (ok) { case PS_SOCKET: diff --git a/fetchmail.c b/fetchmail.c index 2f8abdba..cc303530 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -94,7 +94,7 @@ static void unlockit(int n, void *p) int main (int argc, char **argv) { int st, bkgd = FALSE; - int parsestatus, implicitmode; + int parsestatus, implicitmode = FALSE; char *home, *tmpdir, tmpbuf[BUFSIZ]; struct passwd *pw; struct query *ctl; @@ -271,8 +271,7 @@ int main (int argc, char **argv) else if (argc > 1) { fprintf(stderr, - "fetchmail: can't accept options while a background fetchmail is running.\n", - pid); + "fetchmail: can't accept options while a background fetchmail is running.\n"); return(PS_EXCLUDE); } else if (kill(pid, SIGUSR1) == 0) @@ -568,8 +568,6 @@ static int imap_fetch_body(int sock, struct query *ctl, int number, int *lenp) static int imap_trail(int sock, struct query *ctl, int number) /* discard tail of FETCH response after reading message text */ { - int num; - /* expunges change the fetch numbers */ /* number -= deletecount; */ @@ -129,7 +129,7 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */ #ifdef TESTMAIN static const char *orighdr; #endif /* TESTMAIN */ - int parendepth; + int parendepth = 0; #define START_HDR 0 /* before header colon */ #define SKIP_JUNK 1 /* skip whitespace, \n, and junk */ |