diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-20 21:17:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-20 21:17:40 +0000 |
commit | b8b062b09b687ba751b96ac20ce9fb9a79a43301 (patch) | |
tree | 608cb551a154df99f6a9548cb3d9702bd3b8428c /sys/dev/drm/drm_fops.h | |
parent | 15ebade0f49b1e1e6e150dec2ce588fd540bf300 (diff) | |
download | FreeBSD-src-b8b062b09b687ba751b96ac20ce9fb9a79a43301.zip FreeBSD-src-b8b062b09b687ba751b96ac20ce9fb9a79a43301.tar.gz |
Use td->td_ucred instead of td->td_proc->p_ucred.
Diffstat (limited to 'sys/dev/drm/drm_fops.h')
-rw-r--r-- | sys/dev/drm/drm_fops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_fops.h b/sys/dev/drm/drm_fops.h index 136f4d6..b76d336 100644 --- a/sys/dev/drm/drm_fops.h +++ b/sys/dev/drm/drm_fops.h @@ -37,7 +37,7 @@ drm_file_t *DRM(find_file_by_proc)(drm_device_t *dev, DRM_STRUCTPROC *p) { #if __FreeBSD_version >= 500021 - uid_t uid = p->td_proc->p_ucred->cr_svuid; + uid_t uid = p->td_ucred->cr_svuid; pid_t pid = p->td_proc->p_pid; #else uid_t uid = p->p_cred->p_svuid; @@ -75,7 +75,7 @@ int DRM(open_helper)(dev_t kdev, int flags, int fmt, DRM_STRUCTPROC *p, priv = (drm_file_t *) DRM(alloc)(sizeof(*priv), DRM_MEM_FILES); bzero(priv, sizeof(*priv)); #if __FreeBSD_version >= 500000 - priv->uid = p->td_proc->p_ucred->cr_svuid; + priv->uid = p->td_ucred->cr_svuid; priv->pid = p->td_proc->p_pid; #else priv->uid = p->p_cred->p_svuid; |