gallium/sw/kms: fix a type-mismatch warning
authorMarek Olšák <marek.olsak@amd.com>
Fri, 20 Feb 2015 19:17:20 +0000 (20:17 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 20 Feb 2015 23:16:35 +0000 (00:16 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c

index 781818acbd0522dd4828db40e3d2040849cb3056..ce3de7832882cff50fd7f8a9d7f1b7c166d9a3a3 100644 (file)
@@ -313,7 +313,7 @@ kms_sw_displaytarget_get_handle(struct sw_winsys *winsys,
       return TRUE;
    case DRM_API_HANDLE_TYPE_FD:
       if (!drmPrimeHandleToFD(kms_sw->fd, kms_sw_dt->handle,
-                             DRM_CLOEXEC, &whandle->handle)) {
+                             DRM_CLOEXEC, (int*)&whandle->handle)) {
          whandle->stride = kms_sw_dt->stride;
          return TRUE;
       }