diff options
author | dillon <dillon@FreeBSD.org> | 2003-01-13 00:33:17 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2003-01-13 00:33:17 +0000 |
commit | ccd5574cc6e61b8fbf6b5ed907375f42e19b54f8 (patch) | |
tree | ee3c8690226ac4a086122b794c975aab9319b671 /sys/fs/fifofs/fifo_vnops.c | |
parent | fe540b81bb4ea3115544cd0f082b4ecd39cebb62 (diff) | |
download | FreeBSD-src-ccd5574cc6e61b8fbf6b5ed907375f42e19b54f8.zip FreeBSD-src-ccd5574cc6e61b8fbf6b5ed907375f42e19b54f8.tar.gz |
Bow to the whining masses and change a union back into void *. Retain
removal of unnecessary casts and throw in some minor cleanups to see if
anyone complains, just for the hell of it.
Diffstat (limited to 'sys/fs/fifofs/fifo_vnops.c')
-rw-r--r-- | sys/fs/fifofs/fifo_vnops.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index 558238a..64fee38 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -352,7 +352,7 @@ fifo_ioctl(ap) if (ap->a_command == FIONBIO) return (0); if (ap->a_fflag & FREAD) { - filetmp.un_data.socket = ap->a_vp->v_fifoinfo->fi_readsock; + filetmp.f_data = ap->a_vp->v_fifoinfo->fi_readsock; filetmp.f_cred = ap->a_cred; error = soo_ioctl(&filetmp, ap->a_command, ap->a_data, ap->a_td->td_ucred, ap->a_td); @@ -360,7 +360,7 @@ fifo_ioctl(ap) return (error); } if (ap->a_fflag & FWRITE) { - filetmp.un_data.socket = ap->a_vp->v_fifoinfo->fi_writesock; + filetmp.f_data = ap->a_vp->v_fifoinfo->fi_writesock; filetmp.f_cred = ap->a_cred; error = soo_ioctl(&filetmp, ap->a_command, ap->a_data, ap->a_td->td_ucred, ap->a_td); @@ -482,9 +482,9 @@ fifo_poll(ap) events |= POLLINIGNEOF; } - filetmp.un_data.socket = ap->a_vp->v_fifoinfo->fi_readsock; + filetmp.f_data = ap->a_vp->v_fifoinfo->fi_readsock; filetmp.f_cred = ap->a_cred; - if (filetmp.un_data.socket) + if (filetmp.f_data) revents |= soo_poll(&filetmp, events, ap->a_td->td_ucred, ap->a_td); @@ -497,11 +497,12 @@ fifo_poll(ap) } events = ap->a_events & (POLLOUT | POLLWRNORM | POLLWRBAND); if (events) { - filetmp.un_data.socket = ap->a_vp->v_fifoinfo->fi_writesock; + filetmp.f_data = ap->a_vp->v_fifoinfo->fi_writesock; filetmp.f_cred = ap->a_cred; - if (filetmp.un_data.socket) + if (filetmp.f_data) { revents |= soo_poll(&filetmp, events, ap->a_td->td_ucred, ap->a_td); + } } return (revents); } |