From: Thomas Hellstrom Date: Mon, 15 Feb 2010 13:24:51 +0000 (+0100) Subject: st/xorg, vmware/xorg: Fix xnfcalloc arguments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a1b760cd274aff96d68757dabf9caa077119f37;p=mesa.git st/xorg, vmware/xorg: Fix xnfcalloc arguments. Signed-off-by: Thomas Hellstrom --- diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c index f53a879a14a..90b8b8b4654 100644 --- a/src/gallium/state_trackers/xorg/xorg_driver.c +++ b/src/gallium/state_trackers/xorg/xorg_driver.c @@ -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; } diff --git a/src/gallium/winsys/drm/vmware/xorg/vmw_screen.c b/src/gallium/winsys/drm/vmware/xorg/vmw_screen.c index 7c9757cce95..0d255d2726f 100644 --- a/src/gallium/winsys/drm/vmware/xorg/vmw_screen.c +++ b/src/gallium/winsys/drm/vmware/xorg/vmw_screen.c @@ -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;