diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2007-12-30 01:42:15 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2007-12-30 01:42:15 +0000 |
| commit | 397c19d1753d210247d77eb3ca33d1c7c1eb2fa9 (patch) | |
| tree | 0f2354bfc200294c2629e6ecfba76e364beda579 /sys/dev/streams/streams.c | |
| parent | 2a79fd39b4cf409d2c0bd7a449d7f3e91d7b9007 (diff) | |
Notes
Diffstat (limited to 'sys/dev/streams/streams.c')
| -rw-r--r-- | sys/dev/streams/streams.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index dc67fc53811c..55df9e5913eb 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -251,12 +251,7 @@ streamsopen(struct cdev *dev, int oflags, int devtype, struct thread *td) return error; } - FILE_LOCK(fp); - fp->f_data = so; - fp->f_flag = FREAD|FWRITE; - fp->f_ops = &svr4_netops; - fp->f_type = DTYPE_SOCKET; - FILE_UNLOCK(fp); + finit(fp, FREAD | FWRITE, DTYPE_SOCKET, so, &svr4_netops); /* * Allocate a stream structure and attach it to this socket. |
