tftp: fix IPv6 fallout

This commit is contained in:
Denis Vlasenko
2007-02-07 23:20:32 +00:00
parent 8c6c6e955b
commit 0850cdabde
3 changed files with 25 additions and 22 deletions

View File

@ -82,7 +82,7 @@ int xconnect_tcp_v4(struct sockaddr_in *s_addr)
/* "New" networking API */
int get_nport(len_and_sockaddr *lsa)
int get_nport(const len_and_sockaddr *lsa)
{
#if ENABLE_FEATURE_IPV6
if (lsa->sa.sa_family == AF_INET6) {