diff options
| author | pooka <pooka@NetBSD.org> | 2010-01-17 19:45:06 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2010-01-17 19:45:06 +0000 |
| commit | 64da563d9007f36b9c5ea20a3fcbf552aa781f28 (patch) | |
| tree | d0915be7017c403e41299cd0d82b936b76b0e9ef /sys/dev/usb | |
| parent | d0d86c817a7309ca5e9ef1be04f43e5436391a66 (diff) | |
Forward declare struct bpf_if and use that as the type for bpf_if
instead of "void *". Buys us oo times the type-safety for 0 times
the price.
(no functional change)
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/if_rumvar.h | 4 | ||||
| -rw-r--r-- | sys/dev/usb/if_uralvar.h | 4 | ||||
| -rw-r--r-- | sys/dev/usb/if_zydreg.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/if_rumvar.h b/sys/dev/usb/if_rumvar.h index 314b619f9bc..8ce8c381f1d 100644 --- a/sys/dev/usb/if_rumvar.h +++ b/sys/dev/usb/if_rumvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_rumvar.h,v 1.5 2009/05/29 18:49:21 plunky Exp $ */ +/* $NetBSD: if_rumvar.h,v 1.6 2010/01/17 19:45:06 pooka Exp $ */ /* $OpenBSD: if_rumvar.h,v 1.7 2006/11/13 20:06:38 damien Exp $ */ /*- @@ -135,7 +135,7 @@ struct rum_softc { uint8_t bbp17; #if NBPFILTER > 0 - void * sc_drvbpf; + struct bpf_if * sc_drvbpf; union { struct rum_rx_radiotap_header th; diff --git a/sys/dev/usb/if_uralvar.h b/sys/dev/usb/if_uralvar.h index afa10fe083f..a74e876a4b6 100644 --- a/sys/dev/usb/if_uralvar.h +++ b/sys/dev/usb/if_uralvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_uralvar.h,v 1.8 2007/06/09 12:13:12 kiyohara Exp $ */ +/* $NetBSD: if_uralvar.h,v 1.9 2010/01/17 19:45:06 pooka Exp $ */ /* $OpenBSD: if_ralvar.h,v 1.2 2005/05/13 18:42:50 damien Exp $ */ /*- @@ -125,7 +125,7 @@ struct ural_softc { int nb_ant; #if NBPFILTER > 0 - void * sc_drvbpf; + struct bpf_if * sc_drvbpf; union { struct ural_rx_radiotap_header th; diff --git a/sys/dev/usb/if_zydreg.h b/sys/dev/usb/if_zydreg.h index b30c62677f8..1e8753ddb55 100644 --- a/sys/dev/usb/if_zydreg.h +++ b/sys/dev/usb/if_zydreg.h @@ -1,5 +1,5 @@ /* $OpenBSD: if_zydreg.h,v 1.19 2006/11/30 19:28:07 damien Exp $ */ -/* $NetBSD: if_zydreg.h,v 1.2 2007/06/16 11:18:45 kiyohara Exp $ */ +/* $NetBSD: if_zydreg.h,v 1.3 2010/01/17 19:45:06 pooka Exp $ */ /*- * Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr> @@ -1219,7 +1219,7 @@ struct zyd_softc { int tx_timer; #if NBPFILTER > 0 - void * sc_drvbpf; + struct bpf_if * sc_drvbpf; union { struct zyd_rx_radiotap_header th; |
