summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-05-03 18:44:24 +0000
committerEzra Peisach <epeisach@mit.edu>2001-05-03 18:44:24 +0000
commitcb95276178c0977cab6c1bc5351551ccae01fc84 (patch)
treef54511cce1833ba2e5e6206657d76d1421abfc4f /src
parent0e8e5b4c5a41dd22e6fffcf07665769044a8eae7 (diff)
downloadkrb5-cb95276178c0977cab6c1bc5351551ccae01fc84.tar.gz
krb5-cb95276178c0977cab6c1bc5351551ccae01fc84.tar.xz
krb5-cb95276178c0977cab6c1bc5351551ccae01fc84.zip
* sane_hostname.c (pty_make_sane_hostname): Preserve const
property of incomming parameter in casts. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13228 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/pty/ChangeLog5
-rw-r--r--src/util/pty/sane_hostname.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog
index a3794f784..51e5188cf 100644
--- a/src/util/pty/ChangeLog
+++ b/src/util/pty/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-03 Ezra Peisach <epeisach@rna.mit.edu>
+
+ * sane_hostname.c (pty_make_sane_hostname): Preserve const
+ property of incomming parameter in casts.
+
2001-05-03 Ezra Peisach <epeisach@mit.edu>
* cleanup.c (pty_cleanup): Delcare local variable only if
diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c
index 5edd443ca..de2a4d356 100644
--- a/src/util/pty/sane_hostname.c
+++ b/src/util/pty/sane_hostname.c
@@ -144,7 +144,7 @@ pty_make_sane_hostname(const struct sockaddr *addr, int maxlen,
(*out)[ut_host_len - 1] = '\0';
#else /* old gethostbyaddr interface; how quaint :-) */
if (addr->sa_family == AF_INET)
- hp = gethostbyaddr((char *)&((struct sockaddr_in *)addr)->sin_addr,
+ hp = gethostbyaddr((const char *)&((const struct sockaddr_in *)addr)->sin_addr,
sizeof (struct in_addr), addr->sa_family);
else
hp = NULL;