diff options
author | mux <mux@FreeBSD.org> | 2003-05-14 20:33:41 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-05-14 20:33:41 +0000 |
commit | cf946a90341110a2e768310f41f4295c9a666d8d (patch) | |
tree | 5e440ad3f847cfbccc7958310fcfeb9ecd217c55 /sys/dev/fxp | |
parent | 7bfc7918fb8f3fad35f46ebc3d1ada1bb324c407 (diff) | |
download | FreeBSD-src-cf946a90341110a2e768310f41f4295c9a666d8d.zip FreeBSD-src-cf946a90341110a2e768310f41f4295c9a666d8d.tar.gz |
GCC 3.3 complains about anonymous structures in unions, so
give the fxp_ipcb structure a name in the fxp_rfa structure.
Submitted by: peter
Approved by: re (jhb)
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxpreg.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h index be06c25..1e8d660 100644 --- a/sys/dev/fxp/if_fxpreg.h +++ b/sys/dev/fxp/if_fxpreg.h @@ -291,18 +291,18 @@ struct fxp_cb_tx { * fetched along with the TxCB. */ union { - struct fxp_ipcb; + struct fxp_ipcb ipcb; struct fxp_tbd tbd[FXP_NTXSEG]; } tx_cb_u; }; #define tbd tx_cb_u.tbd -#define ipcb_schedule_low tx_cb_u.ipcb_schedule_low -#define ipcb_ip_schedule tx_cb_u.ipcb_ip_schedule -#define ipcb_ip_activation_high tx_cb_u.ipcb_ip_activation_high -#define ipcb_vlan_id tx_cb_u.ipcb_vlan_id -#define ipcb_ip_header_offset tx_cb_u.ipcb_ip_header_offset -#define ipcb_tcp_header_offset tx_cb_u.ipcb_tcp_header_offset +#define ipcb_schedule_low tx_cb_u.ipcb.ipcb_schedule_low +#define ipcb_ip_schedule tx_cb_u.ipcb.ipcb_ip_schedule +#define ipcb_ip_activation_high tx_cb_u.ipcb.ipcb_ip_activation_high +#define ipcb_vlan_id tx_cb_u.ipcb.ipcb_vlan_id +#define ipcb_ip_header_offset tx_cb_u.ipcb.ipcb_ip_header_offset +#define ipcb_tcp_header_offset tx_cb_u.ipcb.ipcb_tcp_header_offset /* * IPCB field definitions |