property of incomming parameter in casts.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13228
dc483132-0cff-0310-8789-
dd5450dbe970
+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
(*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;