diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2004-12-05 02:04:37 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2004-12-05 02:04:37 +0000 |
commit | 6a716b977986474b51c6c315e6ccdb4d416c133d (patch) | |
tree | 34efb956647625614bf635fd1fc826f0b72d9e09 /sys | |
parent | e8115bde67eded09230b2d52bf3086351b532837 (diff) |
unbreak builds without ATU_DEBUG set.
thanks to jsg@ for pointing that out
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_atu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c index 6e750f183aa..d1bbabadece 100644 --- a/sys/dev/usb/if_atu.c +++ b/sys/dev/usb/if_atu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atu.c,v 1.34 2004/12/05 01:51:20 dlg Exp $ */ +/* $OpenBSD: if_atu.c,v 1.35 2004/12/05 02:04:36 dlg Exp $ */ /* * Copyright (c) 2003, 2004 * Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved. @@ -1090,7 +1090,9 @@ USB_MATCH(atu) int atu_media_change(struct ifnet *ifp) { +#ifdef ATU_DEBUG struct atu_softc *sc = ifp->if_softc; +#endif /* ATU_DEBUG */ int err; DPRINTFN(10, ("%s: atu_media_change\n", USBDEVNAME(sc->atu_dev))); @@ -1109,7 +1111,9 @@ atu_media_change(struct ifnet *ifp) void atu_media_status(struct ifnet *ifp, struct ifmediareq *req) { +#ifdef ATU_DEBUG struct atu_softc *sc = ifp->if_softc; +#endif /* ATU_DEBUG */ DPRINTFN(10, ("%s: atu_media_status\n", USBDEVNAME(sc->atu_dev))); |