st/xorg, vmware/xorg: Fix xnfcalloc arguments.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
Thomas Hellstrom 2010-02-15 14:24:51 +01:00
parent 1ff9cd5079
commit df944efdbf
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;