aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-01-11 10:51:28 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-01-11 10:51:28 +0000
commit7ff1619df0d9c4fc58119bd23e8e6904679db8b6 (patch)
tree40990bea5032b5330125ece444a854efa5ac1f56 /conf.c
parentfa8953f9f0852d1bc9baaee927500a98998fb97b (diff)
downloadfetchmail-7ff1619df0d9c4fc58119bd23e8e6904679db8b6.tar.gz
fetchmail-7ff1619df0d9c4fc58119bd23e8e6904679db8b6.tar.bz2
fetchmail-7ff1619df0d9c4fc58119bd23e8e6904679db8b6.zip
Fix a few compiler warnings through casts.
Make MD5Update argument const. svn path=/branches/BRANCH_6-3/; revision=4621
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/conf.c b/conf.c
index 30c2e482..edec8ee0 100644
--- a/conf.c
+++ b/conf.c
@@ -103,7 +103,7 @@ static void listdump(const char *name, struct idlist *list)
for (idp = list; idp; idp = idp->next)
if (idp->id)
{
- fprintf(stdout, "\"%s\"", visbuf(idp->id));
+ fprintf(stdout, "\"%s\"", visbuf((const char *)idp->id));
if (idp->next)
fputs(", ", stdout);
}
@@ -325,9 +325,9 @@ void dump_config(struct runctl *runp, struct query *querylist)
{
char namebuf[USERNAMELEN + 1];
- strlcpy(namebuf, visbuf(idp->id), sizeof(namebuf));
+ strlcpy(namebuf, visbuf((const char *)idp->id), sizeof(namebuf));
if (idp->val.id2)
- fprintf(stdout, "(\"%s\", %s)", namebuf, visbuf(idp->val.id2));
+ fprintf(stdout, "(\"%s\", %s)", namebuf, visbuf((const char *)idp->val.id2));
else
fprintf(stdout, "\"%s\"", namebuf);
if (idp->next)