diff options
author | phk <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
commit | dfd1f7fd50fffaf75541921fcf86454cd8eb3614 (patch) | |
tree | 624c885995e84df6decddd3291c60a15e50e3c85 /sys/netgraph/ng_device.c | |
parent | cafb94bcea1cdf048e81b7eb2d24808e1a8c5280 (diff) | |
download | FreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.zip FreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.tar.gz |
Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
Diffstat (limited to 'sys/netgraph/ng_device.c')
-rw-r--r-- | sys/netgraph/ng_device.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netgraph/ng_device.c b/sys/netgraph/ng_device.c index c0666b9..49d86b9 100644 --- a/sys/netgraph/ng_device.c +++ b/sys/netgraph/ng_device.c @@ -81,7 +81,7 @@ NETGRAPH_INIT(device, &typestruct); struct ngd_connection { SLIST_ENTRY(ngd_connection) links; - dev_t ngddev; + struct cdev *ngddev; struct ng_hook *active_hook; char *readq; int loc; @@ -412,7 +412,7 @@ ng_device_disconnect(hook_p hook) * the device is opened */ static int -ngdopen(dev_t dev, int flag, int mode, struct thread *td) +ngdopen(struct cdev *dev, int flag, int mode, struct thread *td) { #ifdef NGD_DEBUG @@ -426,7 +426,7 @@ ngdopen(dev_t dev, int flag, int mode, struct thread *td) * the device is closed */ static int -ngdclose(dev_t dev, int flag, int mode, struct thread *td) +ngdclose(struct cdev *dev, int flag, int mode, struct thread *td) { #ifdef NGD_DEBUG @@ -444,7 +444,7 @@ ngdclose(dev_t dev, int flag, int mode, struct thread *td) * */ static int -ngdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) +ngdioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct ngd_softc *sc = &ngd_softc; struct ngd_connection * connection = NULL; @@ -496,7 +496,7 @@ nomsg: * uiomove. */ static int -ngdread(dev_t dev, struct uio *uio, int flag) +ngdread(struct cdev *dev, struct uio *uio, int flag) { int ret = 0, amnt; char buffer[uio->uio_resid+1]; @@ -547,7 +547,7 @@ error: * */ static int -ngdwrite(dev_t dev, struct uio *uio, int flag) +ngdwrite(struct cdev *dev, struct uio *uio, int flag) { int ret; int error = 0; @@ -597,7 +597,7 @@ error: * check if there is data available for read */ static int -ngdpoll(dev_t dev, int events, struct thread *td) +ngdpoll(struct cdev *dev, int events, struct thread *td) { int revents = 0; struct ngd_softc *sc = &ngd_softc; |