* gen_port.c (krb5_gen_portaddr): Add const to cast of
authorEzra Peisach <epeisach@mit.edu>
Fri, 27 Jul 2001 01:53:37 +0000 (01:53 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 27 Jul 2001 01:53:37 +0000 (01:53 +0000)
        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
src/lib/krb5/os/gen_port.c

index f4e02f4cfaee204d209c16b62c7abd42547bd8b1..6ee887bbdf5270954903e91c166c46a24d27c9b9 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 5da5e4a11e4a604cc73bf9547cd09155e488e52b..09c83fb71862570b7365fe87c9d35895e60ccc1d 100644 (file)
@@ -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);