diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-02-15 14:24:51 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2010-02-15 14:26:25 +0100 |
commit | df944efdbf28d35eecf802bc114d520eefde3b1c (patch) | |
tree | b6e34f2a19beadeac2d49c94d81b5d3366669716 | |
parent | 1ff9cd5079b095d7050edb8dc6a7e5b8cad36e1e (diff) |
st/xorg, vmware/xorg: Fix xnfcalloc arguments.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_driver.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/drm/vmware/xorg/vmw_screen.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c index f53a879a14..90b8b8b465 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 7c9757cce9..0d255d2726 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; |