From e51a61e8420335c0d0099505d4c7d6fc6b905eac Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 2 Jul 2001 06:02:39 +0000 Subject: [PATCH] Fix a couple of compile warnings because WLDEBUG and WLCACHE were not defined. --- sys/dev/wl/if_wl.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index d46021f6a1df..58d5523ce5ae 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -327,7 +327,9 @@ static void wlrcv(int unit); static int wlrequeue(int unit, u_short fd_p); static void wlsftwsleaze(u_short *countp, u_char **mb_pp, struct mbuf **tm_pp, int unit); static void wlhdwsleaze(u_short *countp, u_char **mb_pp, struct mbuf **tm_pp, int unit); +#ifdef WLDEBUG static void wltbd(int unit); +#endif static void wlgetpsa(int base, u_char *buf); static void wlsetpsa(int unit); static u_short wlpsacrc(u_char *buf); @@ -1147,10 +1149,12 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) short mode = 0; int opri, error = 0; struct proc *p = curproc; /* XXX */ - int irq, irqval, i, isroot, size; + int irq, irqval, i, isroot; caddr_t up; +#ifdef WLCACHE + int size; char * cpt; - +#endif #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) @@ -2203,6 +2207,7 @@ wlack(int unit) return(cmd); } +#ifdef WLDEBUG static void wltbd(int unit) { @@ -2226,6 +2231,7 @@ wltbd(int unit) tbd_p = tbd.next_tbd_offset; } } +#endif static void wlhdwsleaze(u_short *countp, u_char **mb_pp, struct mbuf **tm_pp, int unit)