summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_fxp.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-07-28 23:30:30 +0000
committerpeter <peter@FreeBSD.org>2000-07-28 23:30:30 +0000
commit36f0fd9c3e1f27c08076b520b33417546efe5f60 (patch)
tree78d2f05bc41ce676cd031fed5247d6bc6ebae71e /sys/pci/if_fxp.c
parent87a4a5f84e010229b4f049b1e3e0f0c1a8d0809d (diff)
downloadFreeBSD-src-36f0fd9c3e1f27c08076b520b33417546efe5f60.zip
FreeBSD-src-36f0fd9c3e1f27c08076b520b33417546efe5f60.tar.gz
"Fix" cast qualifier warnings using the uintptr_t intermediate trick.
Diffstat (limited to 'sys/pci/if_fxp.c')
-rw-r--r--sys/pci/if_fxp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/pci/if_fxp.c b/sys/pci/if_fxp.c
index e86abad..4611ed9 100644
--- a/sys/pci/if_fxp.c
+++ b/sys/pci/if_fxp.c
@@ -1444,7 +1444,8 @@ fxp_init(xsc)
* zero and must be one bits in this structure and this is the easiest
* way to initialize them all to proper values.
*/
- bcopy(fxp_cb_config_template, (volatile void *)&cbp->cb_status,
+ bcopy(fxp_cb_config_template,
+ (void *)(uintptr_t)(volatile void *)&cbp->cb_status,
sizeof(fxp_cb_config_template));
cbp->cb_status = 0;
@@ -1501,7 +1502,8 @@ fxp_init(xsc)
#if defined(__NetBSD__)
bcopy(LLADDR(ifp->if_sadl), (void *)cb_ias->macaddr, 6);
#else
- bcopy(sc->arpcom.ac_enaddr, (volatile void *)cb_ias->macaddr,
+ bcopy(sc->arpcom.ac_enaddr,
+ (void *)(uintptr_t)(volatile void *)cb_ias->macaddr,
sizeof(sc->arpcom.ac_enaddr));
#endif /* __NetBSD__ */
@@ -2019,7 +2021,8 @@ fxp_mc_setup(sc)
break;
}
bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr),
- (volatile void *) &sc->mcsp->mc_addr[nmcasts][0], 6);
+ (void *)(uintptr_t)(volatile void *)
+ &sc->mcsp->mc_addr[nmcasts][0], 6);
nmcasts++;
}
}
OpenPOWER on IntegriCloud