diff options
| author | Warner Losh <imp@FreeBSD.org> | 2006-02-04 21:37:39 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2006-02-04 21:37:39 +0000 |
| commit | ed3eb6ebe2d97c429540abba78ac8a36ecf8f757 (patch) | |
| tree | 14b17898d2a3607867df7ae4902d536c7aed8699 /sys/dev/firewire | |
| parent | ec41774c583578c166138e668348cd3e5d51df29 (diff) | |
Notes
Diffstat (limited to 'sys/dev/firewire')
| -rw-r--r-- | sys/dev/firewire/fwcrom.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/firewire/fwcrom.c b/sys/dev/firewire/fwcrom.c index 45bedee9c4df1..8a53bc7fae710 100644 --- a/sys/dev/firewire/fwcrom.c +++ b/sys/dev/firewire/fwcrom.c @@ -409,13 +409,15 @@ crom_add_quad(struct crom_chunk *chunk, uint32_t entry) int crom_add_entry(struct crom_chunk *chunk, int key, int val) { - struct csrreg *reg; - uint32_t i; + union + { + struct csrreg reg; + uint32_t i; + } foo; - reg = (struct csrreg *)&i; - reg->key = key; - reg->val = val; - return(crom_add_quad(chunk, (uint32_t) i)); + foo.reg.key = key; + foo.reg.val = val; + return (crom_add_quad(chunk, foo.i)); } int |
