aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-20 06:25:23 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-20 06:25:23 +0000
commita8fb4194926aa22732192b37768be34aec0c9360 (patch)
tree4cf96546c03fa82ebdbf13dac92d10d35e4b4211 /sink.c
parent62bdd79aa94a2c4624cb662c9ac43f9bf95d5427 (diff)
downloadfetchmail-a8fb4194926aa22732192b37768be34aec0c9360.tar.gz
fetchmail-a8fb4194926aa22732192b37768be34aec0c9360.tar.bz2
fetchmail-a8fb4194926aa22732192b37768be34aec0c9360.zip
-Wall cleanup.
svn path=/trunk/; revision=2120
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sink.c b/sink.c
index 90af32ed..318ef551 100644
--- a/sink.c
+++ b/sink.c
@@ -276,9 +276,9 @@ int open_sink(struct query *ctl,
*/
nameslen = 0;
for (idp = xmit_names; idp; idp = idp->next)
- if (idp->val.status.mark == XMIT_ACCEPT)
+ if ((idp->val.status.mark == XMIT_ACCEPT))
nameslen += (strlen(idp->id) + 1); /* string + ' ' */
- if (*good_addresses = 0)
+ if ((*good_addresses = 0))
nameslen = strlen(run.postmaster);
names = (char *)xmalloc(nameslen + 1); /* account for '\0' */
@@ -318,17 +318,17 @@ int open_sink(struct query *ctl,
/* find length of resulting mda string */
sp = before;
- while (sp = strstr(sp, "%s")) {
+ while ((sp = strstr(sp, "%s"))) {
length += nameslen - 2; /* subtract %s */
sp += 2;
}
sp = before;
- while (sp = strstr(sp, "%T")) {
+ while ((sp = strstr(sp, "%T"))) {
length += nameslen - 2; /* subtract %T */
sp += 2;
}
sp = before;
- while (sp = strstr(sp, "%F")) {
+ while ((sp = strstr(sp, "%F"))) {
length += fromlen - 2; /* subtract %F */
sp += 2;
}
@@ -336,7 +336,7 @@ int open_sink(struct query *ctl,
after = xmalloc(length + 1);
/* copy mda source string to after, while expanding %[sTF] */
- for (dp = after, sp = before; *dp = *sp; dp++, sp++) {
+ for (dp = after, sp = before; (*dp = *sp); dp++, sp++) {
if (sp[0] != '%') continue;
/* need to expand? BTW, no here overflow, because in