diff options
author | harti <harti@FreeBSD.org> | 2003-07-25 08:22:08 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-25 08:22:08 +0000 |
commit | 8c1d1fe008fd4a7cdc1d07c41facffc25ce2b16d (patch) | |
tree | cbc5b06b92b3ce96b821829f25ddb8661cb76d9a /lib/libatm/ioctl_subr.c | |
parent | 9b9c7d9a477ec1687b76c91929d7daa6781688d4 (diff) | |
download | FreeBSD-src-8c1d1fe008fd4a7cdc1d07c41facffc25ce2b16d.zip FreeBSD-src-8c1d1fe008fd4a7cdc1d07c41facffc25ce2b16d.tar.gz |
Make library WARNS=6 clean. The problems have been: alignment on sparc64
and one of the usual sizeof(in_addr_t) == sizeof(u_long) bugs.
Diffstat (limited to 'lib/libatm/ioctl_subr.c')
-rw-r--r-- | lib/libatm/ioctl_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libatm/ioctl_subr.c b/lib/libatm/ioctl_subr.c index bc600f2..d5cc799 100644 --- a/lib/libatm/ioctl_subr.c +++ b/lib/libatm/ioctl_subr.c @@ -172,7 +172,7 @@ get_vcc_info(intf, vccp) /* * Return a pointer to the VCC info and its length */ - *vccp = (struct air_vcc_rsp *) air.air_buf_addr; + *vccp = (struct air_vcc_rsp *)(void *)air.air_buf_addr; return(buf_len); } @@ -226,7 +226,7 @@ get_subnet_mask(intf, mask) /* * Give the answer back to the caller */ - ip_mask = (struct sockaddr_in *)&req.ifr_addr; + ip_mask = (struct sockaddr_in *)(void *)&req.ifr_addr; *mask = *ip_mask; mask->sin_family = AF_INET; @@ -392,7 +392,7 @@ get_cfg_info ( intf, cfgp ) /* * Return a pointer to the Config info and its length */ - *cfgp = (struct air_cfg_rsp *) air.air_buf_addr; + *cfgp = (struct air_cfg_rsp *)(void *)air.air_buf_addr; return ( buf_len ); } @@ -430,7 +430,7 @@ get_intf_info ( intf, intp ) /* * Return a pointer to the Physical Interface info and its length */ - *intp = (struct air_int_rsp *) air.air_buf_addr; + *intp = (struct air_int_rsp *)(void *)air.air_buf_addr; return ( buf_len ); } |