[2672] in Kerberos_V5_Development
const char * -> char *
daemon@ATHENA.MIT.EDU (Ken Hornstein)
Tue Oct 28 00:32:58 1997
To: krbdev@MIT.EDU
Date: Tue, 28 Oct 1997 00:32:38 -0500
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Okay ... _another_ C standard question, about that bastard system from
hell known as Unicos :-/
The Unicos system I'm using gives an error if you have an argument
of "const char *" to a function that takes "char *". This happens
in a number of places in the krb5 source tree ... most commonly in
calls to gethostbyname(). Two questions:
- Is this "correct" behavior? (So I know whether or not to submit a
compiler bug).
- What's the right fix? I've been just putting in an explicit cast
to char *.
(And before you say anything Assar ... Heimdal suffers from the exact
same problem :-) ).
--Ken