From 85f067d97fdf18769eefd8419ab10c3a9a113195 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Jun 1997 14:14:45 +0000 Subject: -Wall cleanup. svn path=/trunk/; revision=1083 --- base64.c | 2 +- driver.c | 6 ++++-- fetchmail.c | 5 ++--- imap.c | 2 -- rfc822.c | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/base64.c b/base64.c index 490cd7f3..ef36be6f 100644 --- a/base64.c +++ b/base64.c @@ -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; diff --git a/driver.c b/driver.c index 26ebe72a..f1e69dab 100644 --- a/driver.c +++ b/driver.c @@ -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) diff --git a/imap.c b/imap.c index 276cf46d..4c7b733c 100644 --- a/imap.c +++ b/imap.c @@ -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; */ diff --git a/rfc822.c b/rfc822.c index 6e9dd1a9..9d70dabe 100644 --- a/rfc822.c +++ b/rfc822.c @@ -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 */ -- cgit v1.2.3