aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-19 10:36:22 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-19 10:36:22 +0100
commitb5737df8b9eef8a7001432c1f88a7dcacf2e56a8 (patch)
tree5e57e45f93b71babd094e13312044d63579d45ba /transact.c
parent1b88147837bcf98cf5b70fff4a209ecac7a520f8 (diff)
downloadfetchmail-b5737df8b9eef8a7001432c1f88a7dcacf2e56a8.tar.gz
fetchmail-b5737df8b9eef8a7001432c1f88a7dcacf2e56a8.tar.bz2
fetchmail-b5737df8b9eef8a7001432c1f88a7dcacf2e56a8.zip
Further warning fixes.
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transact.c b/transact.c
index 93962526..364a85a0 100644
--- a/transact.c
+++ b/transact.c
@@ -43,7 +43,7 @@ int suppress_tags = FALSE; /* emit tags? */
char tag[TAGLEN];
static int tagnum;
#define GENSYM (sprintf(tag, "A%04d", ++tagnum % TAGMOD), tag)
-static struct method *protocol;
+static const struct method *protocol;
char shroud[PASSWORDLEN*2+3]; /* string to shroud in debug output */
/* session variables initialized in do_session() */
@@ -1462,7 +1462,7 @@ void init_transact(const struct method *proto)
suppress_tags = FALSE;
tagnum = 0;
tag[0] = '\0'; /* nuke any tag hanging out from previous query */
- protocol = (struct method *)proto;
+ protocol = proto;
shroud[0] = '\0';
}