[PATCH] modesetting: Fix a compiler warning about CARD32 vs uint32_t.

Eric Anholt eric at anholt.net
Fri Jun 19 19:10:30 PDT 2015


Signed-off-by: Eric Anholt <eric at anholt.net>
---
 hw/xfree86/drivers/modesetting/dri2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c
index 63cb065..8dc12b7 100644
--- a/hw/xfree86/drivers/modesetting/dri2.c
+++ b/hw/xfree86/drivers/modesetting/dri2.c
@@ -138,7 +138,7 @@ ms_dri2_create_buffer(DrawablePtr drawable, unsigned int attachment,
     ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
     DRI2Buffer2Ptr buffer;
     PixmapPtr pixmap;
-    uint32_t size;
+    CARD32 size;
     uint16_t pitch;
     ms_dri2_buffer_private_ptr private;
 
-- 
2.1.4



More information about the xorg-devel mailing list