Stefan Dirsch
89f97d561d
0002-configure-Use-LT_INIT-from-libtool-2-instead-of-depr.patch 0003-Add-X.Org-s-standard-C-warning-flags-to-AM_CFLAGS.patch 0004-Quiet-Wredundant-decls-from-xorg-os.h-fallbacks-for-.patch 0005-Fix-3-Wunused-but-set-variable-warnings.patch 0006-Fix-4-Wunused-variable-warnings.patch 0007-voodoo_find_dac-doesn-t-check-device_ids-2.patch 0008-use-XNFalloc-instead-of-xnfalloc.patch 0009-use-XNFcallocarray-instead-of-xnfcalloc-macro.patch 0010-bump-minimal-xorg-version-to-1.18.patch 0011-drop-compat-with-ancient-xserver-versions.patch 0012-Drop-ifdefs-for-ABI_VIDEODRV_VERSION-6.patch 0013-Remove-XAA-support.patch 0014-drop-dead-code.patch 0015-drop-remains-of-old-compat-code.patch * latest changes to fix build against current xserver OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xf86-video-voodoo?expand=0&rev=15
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From 2da59302a2fe1a16225af4e7da9ef5b00727a663 Mon Sep 17 00:00:00 2001
|
|
From: "Enrico Weigelt, metux IT consult" <info@metux.net>
|
|
Date: Wed, 8 May 2024 17:27:13 +0200
|
|
Subject: [PATCH 09/15] 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-voodoo/-/merge_requests/6>
|
|
---
|
|
src/voodoo_driver.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/voodoo_driver.c b/src/voodoo_driver.c
|
|
index 377da32..559fdc8 100644
|
|
--- a/src/voodoo_driver.c
|
|
+++ b/src/voodoo_driver.c
|
|
@@ -182,7 +182,7 @@ VoodooGetRec(ScrnInfoPtr pScrn)
|
|
if (pScrn->driverPrivate != NULL)
|
|
return TRUE;
|
|
|
|
- pScrn->driverPrivate = xnfcalloc(sizeof(VoodooRec), 1);
|
|
+ pScrn->driverPrivate = XNFcallocarray(sizeof(VoodooRec), 1);
|
|
|
|
/* Initialize it */
|
|
/* No init here yet */
|
|
@@ -480,7 +480,7 @@ VoodooPreInit(ScrnInfoPtr pScrn, int flags)
|
|
|
|
/* Set up clock ranges so that the xf86ValidateModes() function will not fail a mode because of the clock
|
|
requirement (because we don't use the clock value anyway) */
|
|
- clockRanges = xnfcalloc(sizeof(ClockRange), 1);
|
|
+ clockRanges = XNFcallocarray(sizeof(ClockRange), 1);
|
|
clockRanges->next = NULL;
|
|
clockRanges->minClock = 10000;
|
|
clockRanges->maxClock = 250000; /* 250MHz DAC */
|
|
--
|
|
2.43.0
|
|
|