From a085043c2ce3150284e59b045f2d48c10199d0dc Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 27 Jul 2001 01:53:37 +0000 Subject: [PATCH] * gen_port.c (krb5_gen_portaddr): Add const to cast of krb5_const_pointer to maintain const status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13646 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/gen_port.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index f4e02f4cf..6ee887bbd 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2001-07-26 Ezra Peisach + + * gen_port.c (krb5_gen_portaddr): Add const to cast of + krb5_const_pointer to maintain const status. + 2001-07-24 Ezra Peisach * sn2princ.c: Do not cast away const char * in call to strdup. diff --git a/src/lib/krb5/os/gen_port.c b/src/lib/krb5/os/gen_port.c index 5da5e4a11..09c83fb71 100644 --- a/src/lib/krb5/os/gen_port.c +++ b/src/lib/krb5/os/gen_port.c @@ -43,7 +43,7 @@ krb5_gen_portaddr(context, addr, ptr, outaddr) 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); -- 2.26.2