From 3706cd350927f08fa8742cce9448c9ba8e4d6b2c Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 27 Feb 2002 18:32:23 +0000 Subject: Simple p_ucred -> td_ucred changes to start using the per-thread ucred reference. --- sys/dev/streams/streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/streams') diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index a5c2b4d..1b916a1 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -265,7 +265,7 @@ streamsopen(dev_t dev, int oflags, int devtype, struct thread *td) return error; if ((error = socreate(family, &so, type, protocol, - td->td_proc->p_ucred, td)) != 0) { + td->td_ucred, td)) != 0) { FILEDESC_LOCK(p->p_fd); p->p_fd->fd_ofiles[fd] = 0; FILEDESC_UNLOCK(p->p_fd); -- cgit v1.1