From 0b780f32cadb6c578e7b02032454834206d4b0e0 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 25 Feb 1991 15:55:11 +0000 Subject: [PATCH] put in const where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1781 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/gen_port.c | 4 ++-- src/lib/krb5/os/gen_rname.c | 2 +- src/lib/krb5/os/os-proto.h | 2 +- src/lib/krb5/os/port2ip.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/krb5/os/gen_port.c b/src/lib/krb5/os/gen_port.c index b2915cf17..7cefd7824 100644 --- a/src/lib/krb5/os/gen_port.c +++ b/src/lib/krb5/os/gen_port.c @@ -24,8 +24,8 @@ static char rcsid_gen_port_c[] = krb5_error_code krb5_gen_portaddr(addr, ptr, outaddr) -krb5_address *addr; -krb5_pointer ptr; +const krb5_address *addr; +krb5_const_pointer ptr; krb5_address **outaddr; { #ifdef KRB5_USE_INET diff --git a/src/lib/krb5/os/gen_rname.c b/src/lib/krb5/os/gen_rname.c index ad5b6f217..24c32ef6e 100644 --- a/src/lib/krb5/os/gen_rname.c +++ b/src/lib/krb5/os/gen_rname.c @@ -31,7 +31,7 @@ static char rcsid_gen_rname_c[] = krb5_error_code krb5_gen_replay_name(address, uniq, string) -krb5_address *address; +const krb5_address *address; const char *uniq; char **string; { diff --git a/src/lib/krb5/os/os-proto.h b/src/lib/krb5/os/os-proto.h index b01feabae..454d571e6 100644 --- a/src/lib/krb5/os/os-proto.h +++ b/src/lib/krb5/os/os-proto.h @@ -24,7 +24,7 @@ krb5_error_code krb5_locate_kdc #ifdef KRB5_USE_INET krb5_error_code krb5_unpack_full_ipaddr - PROTOTYPE((krb5_address *, + PROTOTYPE((const krb5_address *, krb5_int32 *, krb5_int16 *)); diff --git a/src/lib/krb5/os/port2ip.c b/src/lib/krb5/os/port2ip.c index fd9baddcf..48ecc902b 100644 --- a/src/lib/krb5/os/port2ip.c +++ b/src/lib/krb5/os/port2ip.c @@ -28,7 +28,7 @@ static char rcsid_port2ip_c[] = krb5_error_code krb5_unpack_full_ipaddr(inaddr, adr, port) -krb5_address *inaddr; +const krb5_address *inaddr; krb5_int32 *adr; krb5_int16 *port; { -- 2.26.2