diff options
author | obrien <obrien@FreeBSD.org> | 2004-03-03 06:20:36 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-03-03 06:20:36 +0000 |
commit | 900a25b95b04a5688ca74a4f2bbc930cc9b8bac2 (patch) | |
tree | 7ebad00ee2e504da11d03d5b8a4d9820978489be /sys/dev/drm/radeon_state.c | |
parent | 3cba815b88ecd64e0be3671293d8f9aa48111a99 (diff) | |
download | FreeBSD-src-900a25b95b04a5688ca74a4f2bbc930cc9b8bac2.zip FreeBSD-src-900a25b95b04a5688ca74a4f2bbc930cc9b8bac2.tar.gz |
Use a long as the opaque type so that it matches the size of a pointer
on both 32-bit and 64-bit platforms.
Diffstat (limited to 'sys/dev/drm/radeon_state.c')
-rw-r--r-- | sys/dev/drm/radeon_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/radeon_state.c b/sys/dev/drm/radeon_state.c index eb3cf20..8f61005 100644 --- a/sys/dev/drm/radeon_state.c +++ b/sys/dev/drm/radeon_state.c @@ -2400,7 +2400,7 @@ int radeon_cp_getparam( DRM_IOCTL_ARGS ) break; case RADEON_PARAM_SAREA_HANDLE: /* The lock is the first dword in the sarea. */ - value = (int)dev->lock.hw_lock; + value = (long)dev->lock.hw_lock; break; case RADEON_PARAM_GART_TEX_HANDLE: value = dev_priv->gart_textures_offset; @@ -2409,7 +2409,7 @@ int radeon_cp_getparam( DRM_IOCTL_ARGS ) return DRM_ERR(EINVAL); } - if ( DRM_COPY_TO_USER( param.value, &value, sizeof(int) ) ) { + if ( DRM_COPY_TO_USER( param.value, &value, sizeof(&value) ) ) { DRM_ERROR( "copy_to_user\n" ); return DRM_ERR(EFAULT); } |