summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-05-26 18:29:11 +0000
committerdlg <dlg@openbsd.org>2007-05-26 18:29:11 +0000
commitda08e4b84b4804c3f451360a6fecb449f62d42b0 (patch)
treef8db04eb278674ad672658943b442f66ec9412d5 /sys
parentwork around stupid trust of the namespace; millert please look at the problem on macppc (diff)
downloadwireguard-openbsd-da08e4b84b4804c3f451360a6fecb449f62d42b0.tar.xz
wireguard-openbsd-da08e4b84b4804c3f451360a6fecb449f62d42b0.zip
get rid of #define sc_if sc_arpcom.ac_if
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_xge.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c
index 9f40fe24eb1..7e0bfc74752 100644
--- a/sys/dev/pci/if_xge.c
+++ b/sys/dev/pci/if_xge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xge.c,v 1.38 2007/05/26 18:25:11 dlg Exp $ */
+/* $OpenBSD: if_xge.c,v 1.39 2007/05/26 18:29:11 dlg Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
@@ -176,7 +176,6 @@ static uint64_t herc_dtx_cfg[] = {
struct xge_softc {
struct device sc_dev;
struct arpcom sc_arpcom;
-#define sc_if sc_arpcom.ac_if
bus_dma_tag_t sc_dmat;
bus_space_tag_t sc_st;
bus_space_handle_t sc_sh;
@@ -821,7 +820,7 @@ xge_intr(void *pv)
{
struct xge_softc *sc = pv;
struct txd *txd;
- struct ifnet *ifp = &sc->sc_if;
+ struct ifnet *ifp = &sc->sc_arpcom.ac_if;
bus_dmamap_t dmp;
uint64_t val;
int i, lasttx, plen;