diff options
author | joe <joe@FreeBSD.org> | 2002-11-06 14:29:27 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-11-06 14:29:27 +0000 |
commit | e47c24189203bdde0576b1ee3934cb7cb316531f (patch) | |
tree | 861fa27971258a353cb11d6602b2cc8ecbaf86e8 | |
parent | 53eebebcce73e0a8394e7ae759ad5bffccc6ba59 (diff) | |
download | FreeBSD-src-e47c24189203bdde0576b1ee3934cb7cb316531f.zip FreeBSD-src-e47c24189203bdde0576b1ee3934cb7cb316531f.tar.gz |
There's no need for a locally defined usb_proc_t when we've got
usb_proc_ptr that does the same thing.
-rw-r--r-- | sys/dev/usb/ufm.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c index 16859d5..80178b4 100644 --- a/sys/dev/usb/ufm.c +++ b/sys/dev/usb/ufm.c @@ -76,17 +76,10 @@ SYSCTL_INT(_hw_usb_ufm, OID_AUTO, debug, CTLFLAG_RW, #define DPRINTFN(n,x) #endif -#ifdef __FreeBSD_version -typedef d_thread_t usb_proc_t; -#else -typedef struct proc usb_proc_t; -#endif - #if defined(__NetBSD__) || defined(__OpenBSD__) -typedef struct proc usb_proc_t; -int ufmopen(dev_t, int, int, struct proc *); -int ufmclose(dev_t, int, int, struct proc *p); -int ufmioctl(dev_t, u_long, caddr_t, int, struct proc *); +int ufmopen(dev_t, int, int, usb_proc_ptr); +int ufmclose(dev_t, int, int, usb_proc_ptr); +int ufmioctl(dev_t, u_long, caddr_t, int, usb_proc_ptr); cdev_decl(ufm); #elif defined(__FreeBSD__) |