diff options
author | harti <harti@FreeBSD.org> | 2003-07-25 08:15:09 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-25 08:15:09 +0000 |
commit | 9b9c7d9a477ec1687b76c91929d7daa6781688d4 (patch) | |
tree | 45c0a98a84221bb204d8d3cb9902954abf69f246 /sbin/atm/ilmid | |
parent | 01a437fb73564ec0cf151f189bf6b140c831ddfa (diff) | |
download | FreeBSD-src-9b9c7d9a477ec1687b76c91929d7daa6781688d4.zip FreeBSD-src-9b9c7d9a477ec1687b76c91929d7daa6781688d4.tar.gz |
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.
Diffstat (limited to 'sbin/atm/ilmid')
-rw-r--r-- | sbin/atm/ilmid/ilmid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c index d2fc4ea..257f1a0 100644 --- a/sbin/atm/ilmid/ilmid.c +++ b/sbin/atm/ilmid/ilmid.c @@ -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 ); |