mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 12:20:15 +01:00
st/xorg, vmware/xorg: Fix xnfcalloc arguments.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
parent
1ff9cd5079
commit
df944efdbf
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue