summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 13:32:04 +0200
committerMarge Bot <emma+marge@anholt.net>2024-07-26 23:41:33 +0000
commit61233adbcab4c8964e2093563ecaa94d76a0e2a4 (patch)
tree8e5192a9271a2153ccdf9944a584d27f50341841 /Xi
parent6b3c916030ae7780bf1aab025065a9d608448f9c (diff)
treewide: replace xnfreallocarray macro call by XNFreallocarray()
The xnfreallocarray was added along (and just as an alias to) XNFreallocarray back a decade ago. It's just used in a few places and it's only saves us from passing the first parameter (NULL), so the actual benefit isn't really huge. No (known) driver is using it, so the macro can be dropped entirely. Fixes: ae75d50395fdd7a6bc382ba73e923c460764c702 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1529>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/exevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 6bfc9a6de..71384254d 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -615,7 +615,7 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr to)
if (from->button->xkb_acts) {
size_t maxbuttons = max(to->button->numButtons, from->button->numButtons);
- to->button->xkb_acts = xnfreallocarray(to->button->xkb_acts,
+ to->button->xkb_acts = XNFreallocarray(to->button->xkb_acts,
maxbuttons,
sizeof(XkbAction));
memset(to->button->xkb_acts, 0, maxbuttons * sizeof(XkbAction));