st/xorg, vmware/xorg: Fix xnfcalloc arguments.
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 15 Feb 2010 13:24:51 +0000 (14:24 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Sat, 27 Feb 2010 02:12:47 +0000 (02:12 +0000)
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/winsys/drm/vmware/xorg/vmw_screen.c

index f53a879a14a1e01364bdf9aa0d9de1a6201e10af..90b8b8b465464a344b168d98488f87142d9d6e82 100644 (file)
@@ -155,7 +155,7 @@ drv_get_rec(ScrnInfoPtr pScrn)
     if (pScrn->driverPrivate)
        return TRUE;
 
-    pScrn->driverPrivate = xnfcalloc(sizeof(modesettingRec), 1);
+    pScrn->driverPrivate = xnfcalloc(1, sizeof(modesettingRec));
 
     return TRUE;
 }
index 7c9757cce9528d8617cde78c718824febe8880b5..0d255d2726f76050da1a5d67bd7a6b1049534bf2 100644 (file)
@@ -87,7 +87,7 @@ vmw_screen_init(ScrnInfoPtr pScrn)
     modesettingPtr ms = modesettingPTR(pScrn);
     struct vmw_driver *vmw;
 
-    vmw = xnfcalloc(sizeof(*vmw), 1);
+    vmw = xnfcalloc(1, sizeof(*vmw));
     if (!vmw)
        return FALSE;