diff options
author | imp <imp@FreeBSD.org> | 2001-07-02 06:02:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-07-02 06:02:39 +0000 |
commit | 823118a5451c2aec41a626b30456e261d97f3898 (patch) | |
tree | f0b0e6e0575c37d6a25cb6f2fd7e7bb12b0cc544 /sys/dev/wl | |
parent | 521f09dc34978c03c8a8c9f94d18c6e5c59527d2 (diff) | |
download | FreeBSD-src-823118a5451c2aec41a626b30456e261d97f3898.zip FreeBSD-src-823118a5451c2aec41a626b30456e261d97f3898.tar.gz |
Fix a couple of compile warnings because WLDEBUG and WLCACHE were
not defined.
Diffstat (limited to 'sys/dev/wl')
-rw-r--r-- | sys/dev/wl/if_wl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index d46021f..58d5523 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) |