diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-04-27 09:50:55 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-04-27 09:50:55 +0200 |
commit | 8b6218e0f1486a39a53783e7c86b42285f89e4cf (patch) | |
tree | 46d0a5aef12c8b13f5de3eb1b32027f463190dd9 | |
parent | 2148260d742663448a8fd7ff950d3d8e7468ccd5 (diff) | |
download | fetchmail-8b6218e0f1486a39a53783e7c86b42285f89e4cf.tar.gz fetchmail-8b6218e0f1486a39a53783e7c86b42285f89e4cf.tar.bz2 fetchmail-8b6218e0f1486a39a53783e7c86b42285f89e4cf.zip |
Fix a few Intel C++ remarks and warnings.
-rw-r--r-- | fetchmail.c | 5 | ||||
-rw-r--r-- | netrc.c | 2 | ||||
-rw-r--r-- | odmr.c | 1 | ||||
-rw-r--r-- | pop3.c | 4 | ||||
-rw-r--r-- | transact.c | 14 | ||||
-rw-r--r-- | uid.c | 2 |
6 files changed, 12 insertions, 16 deletions
diff --git a/fetchmail.c b/fetchmail.c index 6d63c714..93ce7128 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1900,17 +1900,14 @@ static void dump_params (struct runctl *runp, if (ctl->server.akalist) { - struct idlist *idp; - printf(GT_(" Predeclared mailserver aliases:")); for (idp = ctl->server.akalist; idp; idp = idp->next) printf(" %s", idp->id); putchar('\n'); } + if (ctl->server.localdomains) { - struct idlist *idp; - printf(GT_(" Local domains:")); for (idp = ctl->server.localdomains; idp; idp = idp->next) printf(" %s", idp->id); @@ -331,7 +331,7 @@ free_netrc(netrc_entry *a) { int main (int argc, char **argv) { struct stat sb; - char *program_name, *file, *host, *login; + char *file, *host, *login; netrc_entry *head, *a; program_name = argv[0]; @@ -152,7 +152,6 @@ static int odmr_getrange(int sock, struct query *ctl, const char *id, { fd_set readfds; struct timeval timeout; - char buf[MSGBUFSIZE]; FD_ZERO(&readfds); FD_SET(sock, &readfds); @@ -693,7 +693,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting) strcpy((char *)ctl->digest, MD5Digest((unsigned char *)msg)); free(msg); - ok = gen_transact(sock, "APOP %s %s", ctl->remotename, ctl->digest); + ok = gen_transact(sock, "APOP %s %s", ctl->remotename, (char *)ctl->digest); break; case P_RPOP: @@ -856,7 +856,7 @@ static int pop3_fastuidl( int sock, struct query *ctl, unsigned int count, int if (mark == UID_DELETED || mark == UID_EXPUNGED) { if (outlevel >= O_VERBOSE) - report(stderr, GT_("id=%s (num=%d) was deleted, but is still present!\n"), id, try_nr); + report(stderr, GT_("id=%s (num=%u) was deleted, but is still present!\n"), id, try_nr); /* just mark it as seen now! */ newl->val.status.mark = mark = UID_SEEN; } @@ -749,17 +749,17 @@ eoh: * turns on the dropstatus flag. */ { - char *cp; + char *tcp; if (!strncasecmp(line, "Status:", 7)) - cp = line + 7; + tcp = line + 7; else if (!strncasecmp(line, "X-Mozilla-Status:", 17)) - cp = line + 17; + tcp = line + 17; else - cp = NULL; - if (cp) { - while (*cp && isspace((unsigned char)*cp)) cp++; - if (!*cp || ctl->dropstatus) + tcp = NULL; + if (tcp) { + while (*tcp && isspace((unsigned char)*tcp)) tcp++; + if (!*tcp || ctl->dropstatus) { free(line); continue; @@ -282,7 +282,7 @@ void expunge_uids(struct query *ctl) idl->val.status.mark = UID_EXPUNGED; } -const char *str_uidmark(int mark) +static const char *str_uidmark(int mark) { static char buf[20]; |