aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-18 19:51:39 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-18 19:51:39 +0000
commit3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b (patch)
treee629f2ba436ab8a1062638eb1e3176696abfd1f6 /transact.c
parent8f3f473c829e8691ef5566d73f3f130b492e36ba (diff)
downloadfetchmail-3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b.tar.gz
fetchmail-3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b.tar.bz2
fetchmail-3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b.zip
Fix various compiler warnings.
svn path=/trunk/; revision=3899
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/transact.c b/transact.c
index 2bb28ede..b82f928c 100644
--- a/transact.c
+++ b/transact.c
@@ -36,7 +36,7 @@
#include "fetchmail.h"
#ifndef strstr /* glibc-2.1 declares this as a macro */
-extern char *strstr(); /* needed on sysV68 R3V7.1. */
+extern char *strstr(const char *, const char *); /* needed on sysV68 R3V7.1. */
#endif /* strstr */
int mytimeout; /* value of nonreponse timeout */
@@ -87,7 +87,7 @@ static void find_server_names(const char *hdr,
{
char *cp;
- for (cp = nxtaddr(hdr);
+ for (cp = nxtaddr((const unsigned char *)hdr);
cp != NULL;
cp = nxtaddr(NULL))
{
@@ -110,11 +110,11 @@ static void find_server_names(const char *hdr,
{
int sl = strlen(ctl->server.qvirtual);
- if (!strncasecmp(cp, ctl->server.qvirtual, sl))
+ if (!strncasecmp((char *)cp, ctl->server.qvirtual, sl))
cp += sl;
}
- if ((atsign = strchr(cp, '@'))) {
+ if ((atsign = strchr((char *)cp, '@'))) {
struct idlist *idp;
/*
@@ -125,15 +125,15 @@ static void find_server_names(const char *hdr,
for (idp = ctl->server.localdomains; idp; idp = idp->next) {
char *rhs;
- rhs = atsign + (strlen(atsign) - strlen(idp->id));
+ rhs = atsign + (strlen(atsign) - strlen((char *)idp->id));
if (rhs > atsign &&
(rhs[-1] == '.' || rhs[-1] == '@') &&
- strcasecmp(rhs, idp->id) == 0)
+ strcasecmp(rhs, (char *)idp->id) == 0)
{
if (outlevel >= O_DEBUG)
report(stdout, GT_("passed through %s matching %s\n"),
cp, idp->id);
- save_str(xmit_names, cp, XMIT_ACCEPT);
+ save_str(xmit_names, (const char *)cp, XMIT_ACCEPT);
accept_count++;
goto nomap;
}