diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-09 03:30:52 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-09 03:30:52 +0000 |
commit | 6fc4a3adfcfa6eca85446d06216060dfcf37f94b (patch) | |
tree | 3a4a625ca56868a56660f7943c162b3a15e4e041 | |
parent | 8280637a28e54213bbb53180fa264618e98078b6 (diff) | |
download | FreeBSD-src-6fc4a3adfcfa6eca85446d06216060dfcf37f94b.zip FreeBSD-src-6fc4a3adfcfa6eca85446d06216060dfcf37f94b.tar.gz |
Someday I hope people will learn that "#endif" is not a comment
introducer in ANSI C.
-rw-r--r-- | sys/dev/wl/if_wl.c | 24 | ||||
-rw-r--r-- | sys/dev/wl/if_wl.h | 2 | ||||
-rw-r--r-- | sys/i386/isa/if_wl.c | 24 | ||||
-rw-r--r-- | sys/i386/isa/if_wl.h | 2 |
4 files changed, 26 insertions, 26 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 6cf40b1..081f4b4 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.17 1998/11/15 19:30:48 eivind Exp $ */ +/* $Id: if_wl.c,v 1.18 1998/12/07 21:58:21 archie Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -494,7 +494,7 @@ wlattach(struct isa_device *id) #endif #if MULTICAST ifp->if_flags |= IFF_MULTICAST; -#endif MULTICAST +#endif /* MULTICAST */ ifp->if_name = "wl"; ifp->if_unit = unit; ifp->if_init = wlinit; @@ -736,7 +736,7 @@ wlhwrst(int unit) #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) wlmmcstat(unit); /* Display MMC registers */ -#endif WLDEBUG +#endif /* WLDEBUG */ wlbldcu(unit); /* set up command unit structures */ if (wldiag(unit) == 0) @@ -1284,7 +1284,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } #endif break; -#endif MULTICAST +#endif /* MULTICAST */ /* DEVICE SPECIFIC */ @@ -1563,7 +1563,7 @@ int unit; if (ac_status & TC_CARRIER) { printf("wl%d: no carrier\n", unit); } -#endif notdef +#endif /* notdef */ if (ac_status & TC_CLS) { printf("wl%d: no CTS\n", unit); } @@ -1725,7 +1725,7 @@ wlrequeue(int unit, u_short fd_p) #ifdef WLDEBUG static int xmt_debug = 0; -#endif WLDEBUG +#endif /* WLDEBUG */ /* * wlxmt: @@ -1775,7 +1775,7 @@ wlxmt(int unit, struct mbuf *m) printf("ether type %x\n", eh_p->ether_type); } } -#endif WLDEBUG +#endif /* WLDEBUG */ outw(PIOR0(base), OFFSET_TBD); outw(PIOP0(base), 0); /* act_count */ outw(PIOR1(base), OFFSET_TBD + 4); @@ -1830,13 +1830,13 @@ wlxmt(int unit, struct mbuf *m) if (sc->wl_if.if_flags & IFF_DEBUG) if (xmt_debug) printf("mbuf+ L%d @%p ", count, (void *)mb_p); -#endif WLDEBUG +#endif /* WLDEBUG */ } #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) if (xmt_debug) printf("CLEN = %d\n", clen); -#endif WLDEBUG +#endif /* WLDEBUG */ outw(PIOR0(base), tbd_p); if (clen < ETHERMIN) { outw(PIOP0(base), inw(PIOP0(base)) + ETHERMIN - clen); @@ -1854,7 +1854,7 @@ wlxmt(int unit, struct mbuf *m) printf("\n"); } } -#endif WLDEBUG +#endif /* WLDEBUG */ outw(PIOR0(base), OFFSET_SCB + 2); /* address of scb_command */ /* @@ -2039,7 +2039,7 @@ wlconfig(int unit) struct ether_multistep step; #endif int cnt = 0; -#endif MULTICAST +#endif /* MULTICAST */ #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) @@ -2151,7 +2151,7 @@ printf("mcast_addr[%d,%d,%d] %x %x %x %x %x %x\n", lo, hi, cnt, outw(PIOP1(base), cnt * WAVELAN_ADDR_SIZE); if(wlcmd(unit, "config()-mcaddress") == 0) return 0; -#endif MULTICAST +#endif /* MULTICAST */ outw(PIOR1(base), OFFSET_CU); outw(PIOP1(base), 0); /* ac_status */ diff --git a/sys/dev/wl/if_wl.h b/sys/dev/wl/if_wl.h index 90801c3..70d5d30 100644 --- a/sys/dev/wl/if_wl.h +++ b/sys/dev/wl/if_wl.h @@ -116,5 +116,5 @@ typedef struct { outw(MMCR(WLSOFTC(unit)->base), \ (u_short)(((u_short)(val) << 8) | ((cmd) << 1) | 1)) -#endif _IF_WL_H +#endif /* _IF_WL_H */ diff --git a/sys/i386/isa/if_wl.c b/sys/i386/isa/if_wl.c index 6cf40b1..081f4b4 100644 --- a/sys/i386/isa/if_wl.c +++ b/sys/i386/isa/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.17 1998/11/15 19:30:48 eivind Exp $ */ +/* $Id: if_wl.c,v 1.18 1998/12/07 21:58:21 archie Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -494,7 +494,7 @@ wlattach(struct isa_device *id) #endif #if MULTICAST ifp->if_flags |= IFF_MULTICAST; -#endif MULTICAST +#endif /* MULTICAST */ ifp->if_name = "wl"; ifp->if_unit = unit; ifp->if_init = wlinit; @@ -736,7 +736,7 @@ wlhwrst(int unit) #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) wlmmcstat(unit); /* Display MMC registers */ -#endif WLDEBUG +#endif /* WLDEBUG */ wlbldcu(unit); /* set up command unit structures */ if (wldiag(unit) == 0) @@ -1284,7 +1284,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } #endif break; -#endif MULTICAST +#endif /* MULTICAST */ /* DEVICE SPECIFIC */ @@ -1563,7 +1563,7 @@ int unit; if (ac_status & TC_CARRIER) { printf("wl%d: no carrier\n", unit); } -#endif notdef +#endif /* notdef */ if (ac_status & TC_CLS) { printf("wl%d: no CTS\n", unit); } @@ -1725,7 +1725,7 @@ wlrequeue(int unit, u_short fd_p) #ifdef WLDEBUG static int xmt_debug = 0; -#endif WLDEBUG +#endif /* WLDEBUG */ /* * wlxmt: @@ -1775,7 +1775,7 @@ wlxmt(int unit, struct mbuf *m) printf("ether type %x\n", eh_p->ether_type); } } -#endif WLDEBUG +#endif /* WLDEBUG */ outw(PIOR0(base), OFFSET_TBD); outw(PIOP0(base), 0); /* act_count */ outw(PIOR1(base), OFFSET_TBD + 4); @@ -1830,13 +1830,13 @@ wlxmt(int unit, struct mbuf *m) if (sc->wl_if.if_flags & IFF_DEBUG) if (xmt_debug) printf("mbuf+ L%d @%p ", count, (void *)mb_p); -#endif WLDEBUG +#endif /* WLDEBUG */ } #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) if (xmt_debug) printf("CLEN = %d\n", clen); -#endif WLDEBUG +#endif /* WLDEBUG */ outw(PIOR0(base), tbd_p); if (clen < ETHERMIN) { outw(PIOP0(base), inw(PIOP0(base)) + ETHERMIN - clen); @@ -1854,7 +1854,7 @@ wlxmt(int unit, struct mbuf *m) printf("\n"); } } -#endif WLDEBUG +#endif /* WLDEBUG */ outw(PIOR0(base), OFFSET_SCB + 2); /* address of scb_command */ /* @@ -2039,7 +2039,7 @@ wlconfig(int unit) struct ether_multistep step; #endif int cnt = 0; -#endif MULTICAST +#endif /* MULTICAST */ #ifdef WLDEBUG if (sc->wl_if.if_flags & IFF_DEBUG) @@ -2151,7 +2151,7 @@ printf("mcast_addr[%d,%d,%d] %x %x %x %x %x %x\n", lo, hi, cnt, outw(PIOP1(base), cnt * WAVELAN_ADDR_SIZE); if(wlcmd(unit, "config()-mcaddress") == 0) return 0; -#endif MULTICAST +#endif /* MULTICAST */ outw(PIOR1(base), OFFSET_CU); outw(PIOP1(base), 0); /* ac_status */ diff --git a/sys/i386/isa/if_wl.h b/sys/i386/isa/if_wl.h index 90801c3..70d5d30 100644 --- a/sys/i386/isa/if_wl.h +++ b/sys/i386/isa/if_wl.h @@ -116,5 +116,5 @@ typedef struct { outw(MMCR(WLSOFTC(unit)->base), \ (u_short)(((u_short)(val) << 8) | ((cmd) << 1) | 1)) -#endif _IF_WL_H +#endif /* _IF_WL_H */ |