From b5737df8b9eef8a7001432c1f88a7dcacf2e56a8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 19 Mar 2010 10:36:22 +0100 Subject: Further warning fixes. --- transact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transact.c') 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'; } -- cgit v1.2.3