mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Due to a gcc bug, it doesn't like local variables with names like 'sin'.
Rename this for the moment. Also fix a sparc64 alignment warning.
This commit is contained in:
parent
bf6da6238b
commit
ec3770a91a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118001
@ -1881,7 +1881,7 @@ get_local_ip (int s, long *aval)
|
||||
char intf_name[IFNAMSIZ];
|
||||
int namelen = IFNAMSIZ;
|
||||
struct air_netif_rsp *net_info = NULL;
|
||||
struct sockaddr_in *sin;
|
||||
struct sockaddr_in *sain;
|
||||
|
||||
/*
|
||||
* Get physical interface name
|
||||
@ -1897,12 +1897,12 @@ get_local_ip (int s, long *aval)
|
||||
if ( net_info == NULL )
|
||||
return;
|
||||
|
||||
sin = (struct sockaddr_in *)&net_info->anp_proto_addr;
|
||||
sain = (struct sockaddr_in *)(void *)&net_info->anp_proto_addr;
|
||||
|
||||
/*
|
||||
* Fill in answer
|
||||
*/
|
||||
bcopy ( (caddr_t)&sin->sin_addr.s_addr, aval, 4 );
|
||||
bcopy ( (caddr_t)&sain->sin_addr.s_addr, aval, 4 );
|
||||
|
||||
free ( net_info );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user