summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-04-21 20:09:45 +0000
committerscottl <scottl@FreeBSD.org>2004-04-21 20:09:45 +0000
commita1ffaf8fa318992c4a179ae95c2896b8de6e77f7 (patch)
tree80b3972089797f9932fcde1295a80ea30cfe9fa4
parent5e6e9f86ba2eecaf9fad0dc0561f03d04fb59244 (diff)
downloadFreeBSD-src-a1ffaf8fa318992c4a179ae95c2896b8de6e77f7.zip
FreeBSD-src-a1ffaf8fa318992c4a179ae95c2896b8de6e77f7.tar.gz
Use offsetof() instead of hand-rolling something equivalent.
-rw-r--r--sys/dev/asr/asr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c
index 511163a..888e07e 100644
--- a/sys/dev/asr/asr.c
+++ b/sys/dev/asr/asr.c
@@ -2634,7 +2634,7 @@ asr_attach (ATTACH_ARGS)
sc->ha_SystemTable.InboundMessageFrameSize
= status->InboundMFrameSize;
sc->ha_SystemTable.MessengerInfo.InboundMessagePortAddressLow
- = (U32)(sc->ha_Base) + (U32)(&(((i2oRegs_t *)NULL)->ToFIFO));
+ = (U32)(sc->ha_Base) + (U32)offsetof(i2oRegs_t, ToFIFO);
if (!asr_pci_map_int(tag, (void *)sc)) {
printf ("asr%d: could not map interrupt\n", unit);
OpenPOWER on IntegriCloud