diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 17:00:14 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 17:00:14 +0200 |
commit | 3319ce9b3b713b14754277962d2b63e3dd5f5ebc (patch) | |
tree | 2131bdd95dfb9a1156825498b37bd50af1019b56 | |
parent | 783404574bc7a30ae6bee655dd99da0aa320543c (diff) |
use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sunffb/-/merge_requests/6>
-rw-r--r-- | src/ffb_dga.c | 2 | ||||
-rw-r--r-- | src/ffb_driver.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ffb_dga.c b/src/ffb_dga.c index d6f5437..d095570 100644 --- a/src/ffb_dga.c +++ b/src/ffb_dga.c @@ -74,7 +74,7 @@ void FFB_InitDGA(ScreenPtr pScreen) pFfb = GET_FFB_FROM_SCRN(pScrn); - mode = xnfcalloc(sizeof(DGAModeRec), 1); + mode = XNFcallocarray(sizeof(DGAModeRec), 1); if (!mode) { xf86Msg(X_WARNING, "%s: DGA init failed, cannot alloc DGAMode.\n", pFfb->psdp->device); diff --git a/src/ffb_driver.c b/src/ffb_driver.c index 5750600..f63fbce 100644 --- a/src/ffb_driver.c +++ b/src/ffb_driver.c @@ -157,7 +157,7 @@ FFBGetRec(ScrnInfoPtr pScrn) if (pScrn->driverPrivate != NULL) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(FFBRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(FFBRec), 1); return TRUE; } |