krb5_const_pointer to maintain const status.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13646
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-26 Ezra Peisach <epeisach@mit.edu>
+
+ * gen_port.c (krb5_gen_portaddr): Add const to cast of
+ krb5_const_pointer to maintain const status.
+
2001-07-24 Ezra Peisach <epeisach@mit.edu>
* sn2princ.c: Do not cast away const char * in call to strdup.
if (addr->addrtype != ADDRTYPE_INET)
return KRB5_PROG_ATYPE_NOSUPP;
- port = *(krb5_int16 *)ptr;
+ port = *(const krb5_int16 *)ptr;
memcpy((char *)&adr, (char *)addr->contents, sizeof(adr));
return krb5_make_full_ipaddr(context, adr, port, outaddr);