diff options
author | joe <joe@FreeBSD.org> | 2002-01-02 16:33:53 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-01-02 16:33:53 +0000 |
commit | b7218f93dc375ffb8587a39aec1dd9673e1cdd0d (patch) | |
tree | 8e42e13bc7d524abcb88c0d18fe353eb8239fdb2 /sys/dev/usb/umodem.c | |
parent | 205784642b3c46f1f017271c18a02c23a15089b8 (diff) | |
download | FreeBSD-src-b7218f93dc375ffb8587a39aec1dd9673e1cdd0d.zip FreeBSD-src-b7218f93dc375ffb8587a39aec1dd9673e1cdd0d.tar.gz |
NetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)
to hide the distinction between struct proc and struct thread.
Diffstat (limited to 'sys/dev/usb/umodem.c')
-rw-r--r-- | sys/dev/usb/umodem.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index ad24d94..abdc81d 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -571,10 +571,10 @@ umodemparam(tp, t) } int -umodemopen(dev, flag, mode, td) +umodemopen(dev, flag, mode, p) dev_t dev; int flag, mode; - struct thread *td; + usb_proc_ptr p; { int unit = UMODEMUNIT(dev); struct umodem_softc *sc; @@ -599,7 +599,7 @@ umodemopen(dev, flag, mode, td) if (ISSET(tp->t_state, TS_ISOPEN) && ISSET(tp->t_state, TS_XCLUDE) && - suser_td(td)) + suser_td(p)) return (EBUSY); /* @@ -781,10 +781,10 @@ umodemreadcb(xfer, p, status) } int -umodemclose(dev, flag, mode, td) +umodemclose(dev, flag, mode, p) dev_t dev; int flag, mode; - struct thread *td; + usb_proc_ptr p; { struct umodem_softc *sc; struct tty *tp; @@ -924,12 +924,12 @@ umodemtty(dev) } int -umodemioctl(dev, cmd, data, flag, td) +umodemioctl(dev, cmd, data, flag, p) dev_t dev; u_long cmd; caddr_t data; int flag; - struct thread *td; + usb_proc_ptr p; { struct umodem_softc *sc; struct tty *tp; @@ -946,12 +946,12 @@ umodemioctl(dev, cmd, data, flag, td) DPRINTF(("umodemioctl: cmd=0x%08lx\n", cmd)); - error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td); + error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p); if (error >= 0) return (error); #if defined(__NetBSD__) || defined(__OpenBSD__) - error = ttioctl(tp, cmd, data, flag, td); + error = ttioctl(tp, cmd, data, flag, p); #elif defined(__FreeBSD__) error = ttioctl(tp, cmd, data, flag); #endif |